id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
79564911_693
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java", "identifier": "NSImageIconCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIconNotfound() {\n final NSImageIconCache cache = new NSImageIconCache();\n assertNull(cache.iconNamed(null, 64));\n }", "class_method_signature": "NSImageIconCacheTest.testIconNotfound()", "constructor": false, "full_signature": "@Test public void testIcon...
{ "fields": [ { "declarator": "log = Logger.getLogger(NSImageIconCache.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(NSImageIconCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public NSImage iconNamed(final String name, final Integer width, final Integer height) {\n // Search for an object whose name was set explicitly using the setName: method and currently\n // resides in the image cache\n NSImage image = this.load(name, width);\n if(...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_369
{ "fields": [], "file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveReadFeatureTest.java", "identifier": "DriveReadFeatureTest", "interfaces": "", "superclass": "extends AbstractDriveTest" }
{ "body": "@Test\n public void testAppend() {\n assertTrue(new DriveReadFeature(null, new DriveFileidProvider(session).withCache(cache)).offset(new Path(\"/\", EnumSet.of(Path.Type.file))));\n }", "class_method_signature": "DriveReadFeatureTest.testAppend()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "log = Logger.getLogger(DriveReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DriveReadFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public boolean offset(Path file) {\n return true;\n }", "class_method_signature": "DriveReadFeature.offset(Path file)", "constructor": false, "full_signature": "@Override public boolean offset(Path file)", "identifier": "offset", "invocations": [], "modifiers": "@Overri...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_484
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java", "identifier": "SDSDelegatingMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test\n public void testMoveWithRenameDifferentDataRoomSameFilename() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room1 = new SDSDirectoryFeature(session, nodeid).mkdir(new Path(\n new AlphanumericRandomStri...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSDelegatingMoveFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSDelegatingMoveFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback,\n final ConnectionCallback connectionCallback) throws BackgroundException {\n if(containerService.isContainer(source)) {\n if(new SimplePa...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1428
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/TerminalProgressListenerTest.java", "identifier": "TerminalProgressListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessage() {\n new TerminalProgressListener().message(\"b\");\n }", "class_method_signature": "TerminalProgressListenerTest.testMessage()", "constructor": false, "full_signature": "@Test public void testMessage()", "identifier": "testMessage", "invocations": [ ...
{ "fields": [ { "declarator": "console = new Console()", "modifier": "private final", "original_string": "private final Console console = new Console();", "type": "Console", "var_name": "console" } ], "file": "cli/src/main/java/ch/cyberduck/cli/TerminalProgressListener.java",...
{ "body": "@Override\n public void message(final String message) {\n if(StringUtils.isBlank(message)) {\n return;\n }\n final StringAppender appender = new StringAppender('…');\n appender.append(message);\n // Clear the line and append message. Used instead of \\r beca...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1078
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/DefaultIOExceptionMappingServiceTest.java", "identifier": "DefaultIOExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSSLHandshakeCertificateDismissed() {\n final SSLHandshakeException c = new SSLHandshakeException(\"f\");\n c.initCause(new CertificateException(\"c\"));\n assertEquals(ConnectionCanceledException.class,\n new DefaultIOExceptionMappingService().map(...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/DefaultIOExceptionMappingService.java", "identifier": "DefaultIOExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)", ...
{ "body": "public BackgroundException map(final IOException failure, final Path directory) {\n return super.map(\"Connection failed\", failure, directory);\n }", "class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)", "constructor": false, "fu...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1097
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/local/WorkdirPrefixerTest.java", "identifier": "WorkdirPrefixerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCurrentDir() {\n assertEquals(System.getProperty(\"user.dir\"), new WorkdirPrefixer().normalize(\".\"));\n }", "class_method_signature": "WorkdirPrefixerTest.testCurrentDir()", "constructor": false, "full_signature": "@Test public void testCurrentDir()", "identi...
{ "fields": [ { "declarator": "finder\n = WorkingDirectoryFinderFactory.get()", "modifier": "private final", "original_string": "private final WorkingDirectoryFinder finder\n = WorkingDirectoryFinderFactory.get();", "type": "WorkingDirectoryFinder", "var_name": ...
{ "body": "public String normalize(final String name) {\n if(StringUtils.equals(name, \".\")) {\n return finder.find().getAbsolute();\n }\n if(StringUtils.equals(name, \"..\")) {\n return finder.find().getParent().getAbsolute();\n }\n if(!this.isAbsolute(name))...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_938
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/PathNormalizerTest.java", "identifier": "PathNormalizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testName() {\n assertEquals(\"p\", PathNormalizer.name(\"/p\"));\n assertEquals(\"n\", PathNormalizer.name(\"/p/n\"));\n assertEquals(\"p\", PathNormalizer.name(\"p\"));\n assertEquals(\"n\", PathNormalizer.name(\"p/n\"));\n }", "class_method_signatur...
{ "fields": [ { "declarator": "IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\")", "modifier": "private static final", "original_string": "private static final boolean IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\");", "type": "boolean", "var_n...
{ "body": "public static String name(final String path) {\n if(String.valueOf(Path.DELIMITER).equals(path)) {\n return path;\n }\n if(!StringUtils.contains(path, Path.DELIMITER)) {\n return UNICODE_NORMALIZER.normalize(path).toString();\n }\n if(StringUtils.end...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_892
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/serializer/PathAttributesDictionaryTest.java", "identifier": "PathAttributesDictionaryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSerialize() {\n PathAttributes attributes = new PathAttributes();\n PathAttributes clone = new PathAttributesDictionary().deserialize(attributes.serialize(SerializerFactory.get()));\n\n assertEquals(clone.getPermission(), attributes.getPermission());\n ...
{ "fields": [ { "declarator": "factory", "modifier": "private final", "original_string": "private final DeserializerFactory factory;", "type": "DeserializerFactory", "var_name": "factory" } ], "file": "core/src/main/java/ch/cyberduck/core/serializer/PathAttributesDictionary.j...
{ "body": "public <T> PathAttributes deserialize(T serialized) {\n final Deserializer dict = factory.create(serialized);\n final PathAttributes attributes = new PathAttributes();\n final String sizeObj = dict.stringForKey(\"Size\");\n if(sizeObj != null) {\n attributes.setSize(L...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_191
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/cloudfront/WebsiteCloudFrontDistributionConfigurationTest.java", "identifier": "WebsiteCloudFrontDistributionConfigurationTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testGetMethodsAWS() {\n final S3Session session = new S3Session(new Host(new S3Protocol()));\n final WebsiteCloudFrontDistributionConfiguration configuration = new WebsiteCloudFrontDistributionConfiguration(session, new DisabledX509TrustManager(), new DefaultX509KeyMana...
{ "fields": [], "file": "s3/src/main/java/ch/cyberduck/core/cloudfront/WebsiteCloudFrontDistributionConfiguration.java", "identifier": "WebsiteCloudFrontDistributionConfiguration", "interfaces": "", "methods": [ { "class_method_signature": "WebsiteCloudFrontDistributionConfiguration.WebsiteCloudFron...
{ "body": "@Override\n public List<Distribution.Method> getMethods(final Path container) {\n if(!ServiceUtils.isBucketNameValidDNSName(container.getName())) {\n // Disable website configuration if bucket name is not DNS compatible\n return super.getMethods(container);\n }\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1214
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageDirectoryFeatureTest.java", "identifier": "GoogleStorageDirectoryFeatureTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test\n public void testDirectoryWhitespace() throws Exception {\n final Path bucket = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new GoogleStorageDirectoryFeature(session).mkdir(new Path(bucket,\n String.format(\"%s %...
{ "fields": [ { "declarator": "MIMETYPE = \"application/x-directory\"", "modifier": "private static final", "original_string": "private static final String MIMETYPE = \"application/x-directory\";", "type": "String", "var_name": "MIMETYPE" }, { "declarator": "containerSe...
{ "body": "@Override\n public Path mkdir(final Path folder, final String location, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n final Bucket bucket = session.getClient().buckets().insert(session.getHost().getCreden...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_742
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java", "identifier": "FinderLocalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = LocalAccessDeniedException.class)\n public void testReadNoFile() throws Exception {\n final String name = UUID.randomUUID().toString();\n FinderLocal l = new FinderLocal(System.getProperty(\"java.io.tmpdir\"), name);\n l.getInputStream();\n }", "class_method_si...
{ "fields": [ { "declarator": "log = Logger.getLogger(FinderLocal.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FinderLocal.class);", "type": "Logger", "var_name": "log" }, { "declarator": "resolver",...
{ "body": "@Override\n public InputStream getInputStream() throws AccessDeniedException {\n final NSURL resolved;\n try {\n resolved = this.lock(false);\n if(null == resolved) {\n return super.getInputStream();\n }\n }\n catch(LocalAccessD...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_312
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureUrlProviderTest.java", "identifier": "AzureUrlProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDisconnected() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getProperties().getProperty(\"azure.key\")\n )...
{ "fields": [ { "declarator": "containerService\n = new AzurePathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new AzurePathContainerService();", "type": "PathContainerService", "var_name": ...
{ "body": "@Override\n public DescriptiveUrl toDownloadUrl(final Path file, final Void options, final PasswordCallback callback) throws BackgroundException {\n return this.createSignedUrl(file, PreferencesFactory.get().getInteger(\"s3.url.expire.seconds\"));\n }", "class_method_signature": "AzureUrlPro...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_607
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraFindFeatureTest.java", "identifier": "SpectraFindFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFindBucket() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties().getProperty(\"spectra.hostname\"), In...
{ "fields": [ { "declarator": "log = Logger.getLogger(SpectraFindFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SpectraFindFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n final Ds3Client client = new SpectraClientBuilder().wrap(session.getClient(), session.getHost());\n if(containerService.i...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_257
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPListResponseReaderTest.java", "identifier": "FTPListResponseReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParseSymbolicLinkWorkingDirectory() throws Exception {\n final List<String> lines = new FTPStatListService(null, null).parse(\n 211, new String[]{\n \"211-Status of /:\",\n \"211-lrwxrwxrwx 1 root root 1 Jun 21 09:5...
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPListResponseReader.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPListResponseReader.class);", "type": "Logger", "var_name": "log" }, { "decl...
{ "body": "@Override\n public AttributedList<Path> read(final Path directory, final List<String> replies, final ListProgressListener listener) throws FTPInvalidListException {\n final AttributedList<Path> children = new AttributedList<Path>();\n // At least one entry successfully parsed\n bool...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1351
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftMoveFeatureTest.java", "identifier": "SwiftMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testMove() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.o...
{ "fields": [ { "declarator": "containerService\n = new PathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new PathContainerService();", "type": "PathContainerService", "var_name": "container...
{ "body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n if(containerService.getContainer(file).equals(containerService.getContainer(renamed))) {\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_980
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java", "identifier": "HostParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void parseDefaultHostnameWithUserAbsolutePath() throws Exception {\n final Host host = new HostParser(new ProtocolFactory(Collections.singleton(new TestProtocol(Scheme.https) {\n @Override\n public String getDefaultHostname() {\n return \"defaul...
{ "fields": [ { "declarator": "log = Logger.getLogger(HostParser.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(HostParser.class);", "type": "Logger", "var_name": "log" }, { "declarator": "preferences ...
{ "body": "public Host get(final String url) throws HostParserException {\n final Host parsed = HostParser.parse(factory, defaultScheme, url);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Parsed %s as %s\", url, parsed));\n }\n return parsed;\n }", "class_method...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1185
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageLoggingFeatureTest.java", "identifier": "GoogleStorageLoggingFeatureTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n new GoogleStorageLoggingFeature(session).getConfiguration(\n new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory))\n );\n }", "class_method_signature": "GoogleS...
{ "fields": [ { "declarator": "log = Logger.getLogger(GoogleStorageLoggingFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GoogleStorageLoggingFeature.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public LoggingConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n if(bucket.isRoot()) {\n return LoggingConfiguration.empty();\n }\n try {\n final Bucket.Lo...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_579
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVTimestampFeatureTest.java", "identifier": "DAVTimestampFeatureTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n @Ignore\n public void testSetTimestamp() throws Exception {\n final Path file = new Path(new DefaultHomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n session.getFeature(Touch.class).touch(file, new TransferStatus());\n new DAV...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final DAVSession session;", "type": "DAVSession", "var_name": "session" }, { "declarator": "LAST_MODIFIED_DEFAULT_NAMESPACE =\n SardineUtil.createQNameWithDefaultNam...
{ "body": "@Override\n public void setTimestamp(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n final List<DavResource> resources = session.getClient().propfind(new DAVPathEncoder().encode(file), 0,\n Collections.singleton(SardineUtil.createQNam...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_129
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3TransferAccelerationServiceTest.java", "identifier": "S3TransferAccelerationServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void getStatus() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final S3TransferAccelerationService service = new S3TransferAccelerationService(session);\n service.getStatus(container);\n }", "c...
{ "fields": [ { "declarator": "containerService\n = new S3PathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new S3PathContainerService();", "type": "PathContainerService", "var_name"...
{ "body": "@Override\n public boolean getStatus(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n try {\n return session.getClient().getAccelerateConfig(bucket.getName()).isEnabled();\n }\n catch(S3ServiceException fail...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_596
{ "fields": [], "file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/impl/CryptoDirectoryV6ProviderTest.java", "identifier": "CryptoDirectoryV6ProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testToEncryptedInvalidArgument() throws Exception {\n final Path home = new Path(\"/vault\", EnumSet.of(Path.Type.directory));\n final CryptoVault vault = new CryptoVault(home);\n final CryptoDirectory provider = new CryptoDire...
{ "fields": [ { "declarator": "log = Logger.getLogger(CryptoDirectoryV6Provider.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CryptoDirectoryV6Provider.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public String toEncrypted(final Session<?> session, final String directoryId, final String filename, final EnumSet<Path.Type> type) throws BackgroundException {\n final String prefix = type.contains(Path.Type.directory) ? CryptoVault.DIR_PREFIX : \"\";\n final String ciphertext...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_18
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3UrlProviderTest.java", "identifier": "S3UrlProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToSignedUrlAnonymous() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname(),\n new Credentials(\"anonymous\", null)));\n assertEquals(DescriptiveUrl.EMPTY,\n new S3UrlProvider(session, new...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3UrlProvider.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3UrlProvider.class);", "type": "Logger", "var_name": "log" }, { "declarator": "contai...
{ "body": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n if(file.isFile()) {\n // Publicly accessible URL of given object\n list.add(this.toUrl(file, session.getHost().getProtocol().getScheme(), session....
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1490
{ "fields": [], "file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxMoveFeatureTest.java", "identifier": "DropboxMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractDropboxTest" }
{ "body": "@Test\n public void testMoveDirectory() throws Exception {\n final Path home = new DropboxHomeFinderFeature(session).find();\n final Path directory = new DropboxDirectoryFeature(session).mkdir(new Path(home, UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory)), null, new Transfer...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final DropboxSession session;", "type": "DropboxSession", "var_name": "session" }, { "declarator": "containerService\n = new DropboxPathContainerService()", "m...
{ "body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n try {\n if(status.isExists()) {\n new DropboxDeleteFeature(session)....
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_345
{ "fields": [], "file": "nio/src/test/java/ch/cyberduck/core/nio/LocalFindFeatureTest.java", "identifier": "LocalFindFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFindSymlink() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n assumeTrue(session.isPosixFilesystem());\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), n...
{ "fields": [ { "declarator": "log = Logger.getLogger(LocalFindFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LocalFindFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(Files.isSymbolicLink(session.toPath(file))) {\n // Do not follow symbolic link to test for file\n return Files.exists(session.toPath(file), LinkOption.NOFOLLOW_LINKS);\n }\n // T...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_715
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/importer/FetchBookmarkCollectionTest.java", "identifier": "FetchBookmarkCollectionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetFile() throws Exception {\n FetchBookmarkCollection c = new FetchBookmarkCollection();\n assertEquals(0, c.size());\n c.parse(new ProtocolFactory(new HashSet<>(Arrays.asList(new TestProtocol(Scheme.ftp), new TestProtocol(Scheme.ftps), new TestProtocol(Sche...
{ "fields": [ { "declarator": "log = Logger.getLogger(FetchBookmarkCollection.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FetchBookmarkCollection.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@Override\n public Local getFile() {\n return LocalFactory.get(PreferencesFactory.get().getProperty(\"bookmark.import.fetch.location\"));\n }", "class_method_signature": "FetchBookmarkCollection.getFile()", "constructor": false, "full_signature": "@Override public Local getFile()", "id...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1243
{ "fields": [], "file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2ObjectListServiceTest.java", "identifier": "B2ObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractB2Test" }
{ "body": "@Test\n public void testList() throws Exception {\n final B2FileidProvider fileid = new B2FileidProvider(session).withCache(cache);\n final Path bucket = new B2DirectoryFeature(session, fileid).mkdir(\n new Path(String.format(\"test-%s\", new AsciiRandomStringService().random())...
{ "fields": [ { "declarator": "log = Logger.getLogger(B2ObjectListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(B2ObjectListService.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> objects = new AttributedList<Path>();\n Marker marker;\n if(containerService.isContainer(direc...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1306
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPUnixPermissionFeatureTest.java", "identifier": "SFTPUnixPermissionFeatureTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test\n public void testSetUnixPermission() throws Exception {\n final Path home = new SFTPHomeDirectoryService(session).find();\n {\n final Path file = new Path(home, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new SFTPTouchFeature(session).touch(fil...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final SFTPSession session;", "type": "SFTPSession", "var_name": "session" } ], "file": "ssh/src/main/java/ch/cyberduck/core/sftp/SFTPUnixPermissionFeature.java", "identifier": ...
{ "body": "@Override\n public void setUnixPermission(final Path file, final Permission permission) throws BackgroundException {\n final FileAttributes attr = new FileAttributes.Builder()\n .withPermissions(Integer.parseInt(permission.getMode(), 8))\n .build();\n try {\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_200
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/cloudfront/CloudFrontDistributionConfigurationTest.java", "identifier": "CloudFrontDistributionConfigurationTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test(expected = LoginCanceledException.class)\n public void testReadLoginFailure() throws Exception {\n final Host host = new Host(new S3Protocol(), new S3Protocol().getDefaultHostname());\n final S3Session session = new S3Session(host);\n final DistributionConfiguration configurat...
{ "fields": [ { "declarator": "log = Logger.getLogger(CloudFrontDistributionConfiguration.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CloudFrontDistributionConfiguration.class);", "type": "Logger", "var_name": "l...
{ "body": "@Override\n public Distribution read(final Path file, final Distribution.Method method, final LoginCallback prompt) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n return this.authenticated(new Authenticated<Distribution>() {\n @Overr...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_650
{ "fields": [], "file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSDeleteFeatureTest.java", "identifier": "IRODSDeleteFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testDeleteNotFound() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n ...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final IRODSSession session;", "type": "IRODSSession", "var_name": "session" } ], "file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSDeleteFeature.java", "identifier": "I...
{ "body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n final List<Path> deleted = new ArrayList<Path>();\n for(Path file : files.keySet()) {\n boolean skip = false;\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1469
{ "fields": [], "file": "onedrive/src/test/java/ch/cyberduck/core/onedrive/GraphExceptionMappingServiceTest.java", "identifier": "GraphExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void map() {\n assertTrue(new GraphExceptionMappingService().map(\n new OneDriveAPIException(\"The OneDrive API responded with too many redirects.\")) instanceof InteroperabilityException);\n assertTrue(new GraphExceptionMappingService().map(\n ...
{ "fields": [], "file": "onedrive/src/main/java/ch/cyberduck/core/onedrive/GraphExceptionMappingService.java", "identifier": "GraphExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "GraphExceptionMappingService.map(final OneDriveAPIException failure)", "const...
{ "body": "@Override\n public BackgroundException map(final OneDriveAPIException failure) {\n if(failure.getResponseCode() > 0) {\n final StringAppender buffer = new StringAppender();\n buffer.append(failure.getMessage());\n buffer.append(failure.getErrorMessage());\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1193
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageObjectListServiceTest.java", "identifier": "GoogleStorageObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test\n public void testListLexicographicSortOrderAssumption() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path directory = new GoogleStorageDirectoryFeature(session).mkdir(\n new Path(co...
{ "fields": [ { "declarator": "log = Logger.getLogger(GoogleStorageObjectListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GoogleStorageObjectListService.class);", "type": "Logger", "var_name": "log" },...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger(\"googlestorage.listing.chunksize\"));\n }", "class_method_signa...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1039
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/UploadTransferTest.java", "identifier": "UploadTransferTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testListSorted() throws Exception {\n final NullLocal local = new NullLocal(\"t\") {\n @Override\n public AttributedList<Local> list() {\n AttributedList<Local> l = new AttributedList<Local>();\n l.add(new NullLocal(this.getA...
{ "fields": [ { "declarator": "log = Logger.getLogger(UploadTransfer.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(UploadTransfer.class);", "type": "Logger", "var_name": "log" }, { "declarator": "filt...
{ "body": "@Override\n public List<TransferItem> list(final Session<?> session, final Path remote,\n final Local directory, final ListProgressListener listener) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"List children fo...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_996
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/symlink/DownloadSymlinkResolverTest.java", "identifier": "DownloadSymlinkResolverTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNotSupported() {\n DownloadSymlinkResolver resolver = new DownloadSymlinkResolver(null, Collections.<TransferItem>singletonList(\n new TransferItem(new Path(\"/\", EnumSet.of(Path.Type.directory)), new Local(System.getProperty(\"java.io.tmpdir\")))\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(DownloadSymlinkResolver.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DownloadSymlinkResolver.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@Override\n public boolean resolve(final Path file) {\n if(PreferencesFactory.get().getBoolean(\"path.symboliclink.resolve\")) {\n // Follow links instead\n return false;\n }\n // Create symbolic link only if supported by the local file system\n if(featu...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_979
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java", "identifier": "HostParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void parseDefaultHostnameWithUserRelativePath() throws Exception {\n final Host host = new HostParser(new ProtocolFactory(Collections.singleton(new TestProtocol(Scheme.https) {\n @Override\n public String getDefaultHostname() {\n return \"defaul...
{ "fields": [ { "declarator": "log = Logger.getLogger(HostParser.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(HostParser.class);", "type": "Logger", "var_name": "log" }, { "declarator": "preferences ...
{ "body": "public Host get(final String url) throws HostParserException {\n final Host parsed = HostParser.parse(factory, defaultScheme, url);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Parsed %s as %s\", url, parsed));\n }\n return parsed;\n }", "class_method...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1486
{ "fields": [], "file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxProtocolTest.java", "identifier": "DropboxProtocolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPrefix() {\n assertEquals(\"ch.cyberduck.core.dropbox.Dropbox\", new DropboxProtocol().getPrefix());\n }", "class_method_signature": "DropboxProtocolTest.testPrefix()", "constructor": false, "full_signature": "@Test public void testPrefix()", "identifier": "test...
{ "fields": [], "file": "dropbox/src/main/java/ch/cyberduck/core/dropbox/DropboxProtocol.java", "identifier": "DropboxProtocol", "interfaces": "", "methods": [ { "class_method_signature": "DropboxProtocol.getIdentifier()", "constructor": false, "full_signature": "@Override public String ...
{ "body": "@Override\n public String getPrefix() {\n return String.format(\"%s.%s\", this.getClass().getPackage().getName(), \"Dropbox\");\n }", "class_method_signature": "DropboxProtocol.getPrefix()", "constructor": false, "full_signature": "@Override public String getPrefix()", "identifier": "g...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_580
{ "fields": [], "file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/CryptoOutputStreamTest.java", "identifier": "CryptoOutputStreamTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSmallChunksToWrite() throws Exception {\n final CryptoVault vault = this.getVault();\n final ByteArrayOutputStream cipherText = new ByteArrayOutputStream();\n final FileHeader header = vault.getFileHeaderCryptor().create();\n final CryptoOutputStream<?...
{ "fields": [ { "declarator": "proxy", "modifier": "private final", "original_string": "private final StatusOutputStream<Reply> proxy;", "type": "StatusOutputStream<Reply>", "var_name": "proxy" } ], "file": "cryptomator/src/main/java/ch/cyberduck/core/cryptomator/CryptoOutput...
{ "body": "@Override\n public void write(final int b) throws IOException {\n throw new IOException(new UnsupportedOperationException());\n }", "class_method_signature": "CryptoOutputStream.write(final int b)", "constructor": false, "full_signature": "@Override public void write(final int b)", "id...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1255
{ "fields": [], "file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2ReadFeatureTest.java", "identifier": "B2ReadFeatureTest", "interfaces": "", "superclass": "extends AbstractB2Test" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n new B2ReadFeature(session, new B2FileidProvider(session).withCache(cache)).read(new Path(new B2HomeFinderService(session).find(), \"nosuchna...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final B2Session session;", "type": "B2Session", "var_name": "session" }, { "declarator": "fileid", "modifier": "private final", "original_string": "private fina...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(file.getType().contains(Path.Type.upload)) {\n return new NullInputStream(0L);\n }\n if(st...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_703
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/io/watchservice/FSEventWatchServiceTest.java", "identifier": "FSEventWatchServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRegister() throws Exception {\n final RegisterWatchService fs = new FSEventWatchService();\n final Watchable folder = Paths.get(\n File.createTempFile(UUID.randomUUID().toString(), \"t\").getParent());\n final WatchKey key = fs.register(folder, new...
{ "fields": [ { "declarator": "log = Logger.getLogger(FSEventWatchService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FSEventWatchService.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Override\n public WatchKey register(final Watchable folder,\n final WatchEvent.Kind<?>[] events,\n final WatchEvent.Modifier... modifiers)\n throws IOException {\n if(log.isInfoEnabled()) {\n log.info(String.format(\"Regis...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_353
{ "fields": [], "file": "nio/src/test/java/ch/cyberduck/core/nio/LocalListServiceTest.java", "identifier": "LocalListServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testListJunction() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n assumeTrue(Factory.Platform.getDefault().equals(Factory.Platform.Name.windows));\n assertNotNull(sess...
{ "fields": [ { "declarator": "log = Logger.getLogger(LocalListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LocalListService.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n final AttributedList<ch.cyberduck.core.Path> paths = new AttributedList<>();\n try (DirectoryStream<java.nio.file.Path> directoryStream = Files.newDirector...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_646
{ "fields": [], "file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSSessionTest.java", "identifier": "IRODSSessionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = LoginFailureException.class)\n public void testLoginFailure() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(IRODSSession.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(IRODSSession.class);", "type": "Logger", "var_name": "log" }, { "declarator": "preferen...
{ "body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n try {\n final IRODSAccount account = client.getIRODSAccount();\n final Credentials credentials = host.getCredentials();\n accou...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_216
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/iam/AmazonServiceExceptionMappingServiceTest.java", "identifier": "AmazonServiceExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAccessFailure() {\n final AmazonServiceException f = new AmazonServiceException(\"message\", null);\n f.setStatusCode(403);\n f.setErrorCode(\"AccessDenied\");\n assertTrue(new AmazonServiceExceptionMappingService().map(f) instanceof AccessDeniedExcept...
{ "fields": [], "file": "s3/src/main/java/ch/cyberduck/core/iam/AmazonServiceExceptionMappingService.java", "identifier": "AmazonServiceExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "AmazonServiceExceptionMappingService.map(final AmazonClientException e)", ...
{ "body": "@Override\n public BackgroundException map(final AmazonClientException e) {\n final StringBuilder buffer = new StringBuilder();\n if(e instanceof AmazonServiceException) {\n final AmazonServiceException failure = (AmazonServiceException) e;\n this.append(buffer, failu...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_0
{ "fields": [], "file": "udt/src/test/java/ch/cyberduck/core/udt/qloudsonic/QloudsonicProxyProviderTest.java", "identifier": "QloudsonicProxyProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = MissingReceiptException.class)\n public void testHeaders() throws Exception {\n new QloudsonicProxyProvider().headers();\n }", "class_method_signature": "QloudsonicProxyProviderTest.testHeaders()", "constructor": false, "full_signature": "@Test(expected = MissingReceiptE...
{ "fields": [ { "declarator": "log = Logger.getLogger(QloudsonicProxyProvider.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QloudsonicProxyProvider.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@Override\n public List<Header> headers() throws AccessDeniedException, MissingReceiptException, InvalidReceiptException {\n final List<License> receipts = factory.open();\n if(receipts.isEmpty()) {\n throw new MissingReceiptException();\n }\n final List<Header> he...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1310
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPWriteFeatureTest.java", "identifier": "SFTPWriteFeatureTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testWriteNotFound() throws Exception {\n final Path test = new Path(new SFTPHomeDirectoryService(session).find().getAbsolute() + \"/nosuchdirectory/\" + UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new SFTPWriteFeature...
{ "fields": [ { "declarator": "log = Logger.getLogger(SFTPWriteFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SFTPWriteFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public StatusOutputStream<Void> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final EnumSet<OpenMode> flags;\n if(status.isAppend()) {\n if(status.isExists()) {\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_538
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVWriteFeatureTest.java", "identifier": "DAVWriteFeatureTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test(expected = AccessDeniedException.class)\n @Ignore\n public void testWriteAccessDenied() throws Exception {\n final Path test = new Path(new DefaultHomeFinderService(session).find().getAbsolute() + \"/nosuchdirectory/\" + UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(DAVWriteFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DAVWriteFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "se...
{ "body": "@Override\n public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final List<Header> headers = this.getHeaders(file, status);\n return this.write(file, headers, status);\n }", "clas...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_492
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java", "identifier": "SDSDelegatingMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test\n public void testMoveToDifferentParentAndRename() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session, nodeid).mkdir(new Path(\n new AlphanumericRandomStringService().ra...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSDelegatingMoveFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSDelegatingMoveFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback,\n final ConnectionCallback connectionCallback) throws BackgroundException {\n if(containerService.isContainer(source)) {\n if(new SimplePa...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_168
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java", "identifier": "S3SessionTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testBucketVirtualHostStyleEucalyptusDefaultHost() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new S3Protocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Local(\"....
{ "fields": [ { "declarator": "log = Logger.getLogger(S3Session.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3Session.class);", "type": "Logger", "var_name": "log" }, { "declarator": "preferences\n ...
{ "body": "@Override\n public RequestEntityRestStorageService connect(final Proxy proxy, final HostKeyCallback hostkey, final LoginCallback prompt) {\n final HttpClientBuilder configuration = builder.build(proxy, this, prompt);\n // Only for AWS\n if(S3Session.isAwsHostname(host.getHostname())...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_187
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3AccessControlListFeatureTest.java", "identifier": "S3AccessControlListFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testReadVersioned() throws Exception {\n final Path container = new Path(\"versioning-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new S3TouchFeature(session).touch(new Path(container, new AsciiRandomStringService()...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3AccessControlListFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3AccessControlListFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public Acl getPermission(final Path file) throws BackgroundException {\n try {\n if(file.getType().contains(Path.Type.upload)) {\n return Acl.EMPTY;\n }\n if(containerService.isContainer(file)) {\n // This method can be pe...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_59
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3MoveFeatureTest.java", "identifier": "S3MoveFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testMoveWithDelimiter() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path placeholder = new Path(container, new AsciiRandomStringService().random(), EnumSet.of(Path.Type.di...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3MoveFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3MoveFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "contai...
{ "body": "@Override\n public Path move(final Path source, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n Path copy;\n if(source.attributes().getCustom().containsKey(KEY_DELETE_MARKER)) {\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_884
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/shared/DefaultHomeFinderServiceTest.java", "identifier": "DefaultHomeFinderServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDefaultLocalPathDriveLetterBackwardSlashes() {\n assertEquals(new Path(\"/C:/Users/example/Documents/vault\", EnumSet.of(Path.Type.directory)),\n new DefaultHomeFinderService(null).find(new Path(\"/\", EnumSet.of(Path.Type.directory)), \"C:\\\\Users\\\\example\\...
{ "fields": [ { "declarator": "DEFAULT_HOME = new Path(String.valueOf(Path.DELIMITER),\n EnumSet.of(Path.Type.volume, Path.Type.directory))", "modifier": "protected final", "original_string": "protected final Path DEFAULT_HOME = new Path(String.valueOf(Path.DELIMITER),\n EnumSet.of...
{ "body": "@Override\n public Path find() throws BackgroundException {\n final Host host = session.getHost();\n if(host.getWorkdir() != null) {\n return new PathDictionary().deserialize(host.getWorkdir().serialize(SerializerFactory.get()));\n }\n else {\n final Str...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1081
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/DefaultIOExceptionMappingServiceTest.java", "identifier": "DefaultIOExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMapPathName() {\n final DefaultIOExceptionMappingService s = new DefaultIOExceptionMappingService();\n assertEquals(\"Download n failed.\", s.map(\"Download {0} failed\", new SocketException(\"s\"),\n new Path(\"/n\", EnumSet.of(Path.Type.directory, Path....
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/DefaultIOExceptionMappingService.java", "identifier": "DefaultIOExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)", ...
{ "body": "public BackgroundException map(final IOException failure, final Path directory) {\n return super.map(\"Connection failed\", failure, directory);\n }", "class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)", "constructor": false, "fu...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_304
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureCopyFeatureTest.java", "identifier": "AzureCopyFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void testCopySharedAccessSignature() throws Exception {\n final Host host = new Host(new AzureProtocol() {\n @Override\n public boolean isUsernameConfigurable() {\n return false;\n }\n\n @Override\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(AzureCopyFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(AzureCopyFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public Path copy(final Path source, final Path copy, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final CloudBlob target = session.getClient().getContainerReference(containerService.getContainer(copy).getName())\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_754
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/local/WorkspaceBrowserLauncherTest.java", "identifier": "WorkspaceBrowserLauncherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testOpen() {\n assertFalse(new WorkspaceBrowserLauncher().open(\"\"));\n assertFalse(new WorkspaceBrowserLauncher().open(null));\n }", "class_method_signature": "WorkspaceBrowserLauncherTest.testOpen()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [ { "declarator": "log = Logger.getLogger(WorkspaceBrowserLauncher.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(WorkspaceBrowserLauncher.class);", "type": "Logger", "var_name": "log" } ], "file...
{ "body": "@Override\n public boolean open(final String url) {\n synchronized(NSWorkspace.class) {\n if(StringUtils.isNotBlank(url)) {\n if(NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString(url))) {\n return true;\n }\n log.w...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1202
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageSessionTest.java", "identifier": "GoogleStorageSessionTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test(expected = LoginCanceledException.class)\n public void testConnectMissingKey() throws Exception {\n session.close();\n session.getHost().getCredentials().setOauth(OAuthTokens.EMPTY);\n session.login(Proxy.DIRECT, new DisabledLoginCallback() {\n @Override\n ...
{ "fields": [ { "declarator": "transport", "modifier": "private", "original_string": "private ApacheHttpTransport transport;", "type": "ApacheHttpTransport", "var_name": "transport" }, { "declarator": "authorizationService", "modifier": "private", "original_...
{ "body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt,\n final CancelCallback cancel) throws BackgroundException {\n authorizationService.setTokens(authorizationService.authorize(host, prompt, cancel));\n }", "class_method_signature": "GoogleStorage...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1347
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftFindFeatureTest.java", "identifier": "SwiftFindFeatureTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testFindKey() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path file = new Path(container, UUID.randomUUID().toString(), EnumSe...
{ "fields": [ { "declarator": "feature", "modifier": "private final", "original_string": "private final Headers feature;", "type": "Headers", "var_name": "feature" } ], "file": "openstack/src/main/java/ch/cyberduck/core/openstack/SwiftFindFeature.java", "identifier": "Swift...
{ "body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n feature.getMetadata(file);\n return true;\n }\n catch(NotfoundException e) {\n return false;\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_241
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java", "identifier": "FTPMlsdListResponseReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = FTPInvalidListException.class)\n public void test8053() throws Exception {\n Path path = new Path(\"/\", EnumSet.of(Path.Type.directory));\n String[] replies = new String[]{\n \"type=OS.unix=slink:;size=11;modify=20140506165021;UNIX.mode=0777;UNIX.uid=1144;UNIX....
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPMlsdListResponseReader.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPMlsdListResponseReader.class);", "type": "Logger", "var_name": "log" } ], "fi...
{ "body": "@Override\n public AttributedList<Path> read(final Path directory, final List<String> replies, final ListProgressListener listener) throws FTPInvalidListException {\n final AttributedList<Path> children = new AttributedList<Path>();\n // At least one entry successfully parsed\n bool...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_611
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraAttributesFinderFeatureTest.java", "identifier": "SpectraAttributesFinderFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testFindNotFound() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties()...
{ "fields": [ { "declarator": "log = Logger.getLogger(SpectraAttributesFinderFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SpectraAttributesFinderFeature.class);", "type": "Logger", "var_name": "log" },...
{ "body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n if(containerService.isContainer(file)) {\n return PathAttributes.EMPTY;\n }\n return this.toAttributes(...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_666
{ "fields": [], "file": "importer/src/test/java/ch/cyberduck/core/importer/Transmit4BookmarkCollectionTest.java", "identifier": "Transmit4BookmarkCollectionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetFile() throws Exception {\n Transmit4BookmarkCollection c = new Transmit4BookmarkCollection();\n assertEquals(0, c.size());\n c.parse(new ProtocolFactory(new HashSet<>(Arrays.asList(new TestProtocol(Scheme.ftp), new TestProtocol(Scheme.ftps), new TestProto...
{ "fields": [ { "declarator": "log = Logger.getLogger(Transmit4BookmarkCollection.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(Transmit4BookmarkCollection.class);", "type": "Logger", "var_name": "log" } ], ...
{ "body": "@Override\n public Local getFile() {\n return LocalFactory.get(PreferencesFactory.get().getProperty(\"bookmark.import.transmit4.location\"));\n }", "class_method_signature": "Transmit4BookmarkCollection.getFile()", "constructor": false, "full_signature": "@Override public Local getFile()...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_236
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java", "identifier": "FTPMlsdListResponseReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = FTPInvalidListException.class)\n public void testBrokenMlsd() throws Exception {\n Path path = new Path(\n \"/Dummies_Infoblaetter\", EnumSet.of(Path.Type.directory));\n String[] replies = new String[]{\n \"Type=dir;Modify=20101209140859;Win32.ea=0x00...
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPMlsdListResponseReader.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPMlsdListResponseReader.class);", "type": "Logger", "var_name": "log" } ], "fi...
{ "body": "@Override\n public AttributedList<Path> read(final Path directory, final List<String> replies, final ListProgressListener listener) throws FTPInvalidListException {\n final AttributedList<Path> children = new AttributedList<Path>();\n // At least one entry successfully parsed\n bool...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1330
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPCommandFeatureTest.java", "identifier": "SFTPCommandFeatureTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test\n @Ignore\n public void testSend() throws Exception {\n final StringBuilder t = new StringBuilder();\n new SFTPCommandFeature(session).send(\"ps\", new ProgressListener() {\n @Override\n public void message(final String message) {\n assertEqual...
{ "fields": [ { "declarator": "log = Logger.getLogger(SFTPCommandFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SFTPCommandFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@Override\n public void send(final String command, final ProgressListener listener, final TranscriptListener transcript) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Send command %s\", command));\n }\n final Session sess;\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1275
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPReadFeatureTest.java", "identifier": "SFTPReadFeatureTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test\n public void testRead() throws Exception {\n final Path home = new SFTPHomeDirectoryService(session).find();\n final Path test = new Path(home, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new SFTPTouchFeature(session).touch(test, new TransferStatus());\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(SFTPReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SFTPReadFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "se...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final RemoteFile handle = session.sftp().open(file.getAbsolute(), EnumSet.of(OpenMode.READ));\n final int maxUnconfirme...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_723
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/diagnostics/SystemConfigurationReachabilityTest.java", "identifier": "SystemConfigurationReachabilityTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsReachablePort80() {\n final Reachability r = new SystemConfigurationReachability();\n assertTrue(r.isReachable(\n new Host(new TestProtocol(), \"cyberduck.ch\", 80)\n ));\n }", "class_method_signature": "SystemConfigurationReachabilityTe...
{ "fields": [ { "declarator": "log = Logger.getLogger(SystemConfigurationReachability.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SystemConfigurationReachability.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Override\n public boolean isReachable(final Host bookmark) {\n final CDReachabilityMonitor monitor = CDReachabilityMonitor.monitorForUrl(this.toURL(bookmark));\n return monitor.isReachable();\n }", "class_method_signature": "SystemConfigurationReachability.isReachable(final Host book...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_689
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java", "identifier": "NSImageIconCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCacheTiff() {\n final NSImageIconCache cache = new NSImageIconCache();\n final NSImage icon32 = cache.fileIcon(new FinderLocal(\"../../img/ftp.tiff\"), 32);\n assertNotNull(icon32);\n assertEquals(32, icon32.size().width.intValue());\n assertEqu...
{ "fields": [ { "declarator": "log = Logger.getLogger(NSImageIconCache.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(NSImageIconCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public NSImage fileIcon(final Local file, final Integer size) {\n NSImage icon = null;\n if(file.exists()) {\n icon = this.load(file.getAbsolute(), size);\n if(null == icon) {\n return this.cache(file.getName(),\n this.con...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_373
{ "fields": [], "file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveReadFeatureTest.java", "identifier": "DriveReadFeatureTest", "interfaces": "", "superclass": "extends AbstractDriveTest" }
{ "body": "@Test\n public void testReadPath() throws Exception {\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache);\n final Path directory = new DriveDirectoryFeature(session, fileid).mkdir(new Path(DriveHomeFinderService.MYDRIVE_FOLDER, new AlphanumericRandomStri...
{ "fields": [ { "declarator": "log = Logger.getLogger(DriveReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DriveReadFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n if(file.getType().contains(Path.Type.placeholder)) {\n final DescriptiveUrl link = new DriveUrlProvider().toUrl(file).find(DescriptiveUrl....
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_959
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/BookmarkNameProviderTest.java", "identifier": "BookmarkNameProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringDefaultHostname() {\n final TestProtocol protocol = new TestProtocol(Scheme.file) {\n @Override\n public String getName() {\n return \"P\";\n }\n\n @Override\n public String getDefaultHostname() ...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/BookmarkNameProvider.java", "identifier": "BookmarkNameProvider", "interfaces": "", "methods": [ { "class_method_signature": "BookmarkNameProvider.BookmarkNameProvider()", "constructor": true, "full_signature": "private Bookm...
{ "body": "public static String toString(final Host bookmark) {\n return toString(bookmark, false);\n }", "class_method_signature": "BookmarkNameProvider.toString(final Host bookmark)", "constructor": false, "full_signature": "public static String toString(final Host bookmark)", "identifier": "toStr...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1449
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/CommandLineUriParserTest.java", "identifier": "CommandLineUriParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParse() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final CommandLine input = parser.parse(new Options(), new String[]{});\n final ProtocolFactory factory = new ProtocolFactory(new LinkedHashSet<>(Arrays.asList(new FTPTLSProtoco...
{ "fields": [ { "declarator": "log = Logger.getLogger(CommandLineUriParser.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CommandLineUriParser.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "public Host parse(final String uri) throws HostParserException {\n final Host host = new HostParser(factory).get(uri);\n if(input.hasOption(TerminalOptionsBuilder.Params.region.name())) {\n host.setRegion(input.getOptionValue(TerminalOptionsBuilder.Params.region.name()));\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1019
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/SpeedometerTest.java", "identifier": "SpeedometerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testProgressRemaining2() {\n final long start = System.currentTimeMillis();\n Speedometer m = new Speedometer(start, true);\n assertEquals(\"500.0 KB (500,000 bytes) of 1.0 MB (50%, 500.0 KB/sec, 1 seconds remaining)\",\n m.getProgress(start + 1000...
{ "fields": [ { "declarator": "sizeFormatter = SizeFormatterFactory.get()", "modifier": "private", "original_string": "private SizeFormatter sizeFormatter = SizeFormatterFactory.get();", "type": "SizeFormatter", "var_name": "sizeFormatter" }, { "declarator": "timestamp"...
{ "body": "public String getProgress(final boolean running, final long size, final long transferred) {\n return this.getProgress(System.currentTimeMillis(), running, size, transferred);\n }", "class_method_signature": "Speedometer.getProgress(final boolean running, final long size, final long transferred)...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1367
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftReadFeatureTest.java", "identifier": "SwiftReadFeatureTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testReadRange() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path test = new Path(container, UUID.randomUUID().toString(), Enum...
{ "fields": [ { "declarator": "log = Logger.getLogger(SwiftReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SwiftReadFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n // Do not set checksum when metadata key X-Static-Large-Object is present. Disable checksum verification in download filter.\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_261
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPUnixPermissionFeatureTest.java", "identifier": "FTPUnixPermissionFeatureTest", "interfaces": "", "superclass": "extends AbstractFTPTest" }
{ "body": "@Test(expected = InteroperabilityException.class)\n public void testSetUnixPermission() throws Exception {\n final FTPWorkdirService workdir = new FTPWorkdirService(session);\n final Path home = workdir.find();\n final Path test = new Path(workdir.find(), UUID.randomUUID().toString(...
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPUnixPermissionFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPUnixPermissionFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public void setUnixPermission(final Path file, final Permission permission) throws BackgroundException {\n if(failure != null) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Skip setting permission for %s due to previous failure %s\", file, failur...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_631
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraBulkServiceTest.java", "identifier": "SpectraBulkServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPreDownloadFolderOnly() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties().getProperty(\"spectra.host...
{ "fields": [ { "declarator": "log = Logger.getLogger(SpectraBulkService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SpectraBulkService.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@Override\n public Set<UUID> pre(final Transfer.Type type, final Map<TransferItem, TransferStatus> files, final ConnectionCallback callback) throws BackgroundException {\n final Ds3Client client = new SpectraClientBuilder().wrap(session.getClient(), session.getHost());\n final Map<Path, Li...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_324
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureDirectoryFeatureTest.java", "identifier": "AzureDirectoryFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreatePlaceholder() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getProperties().getProperty(\"azure.key\")\n ...
{ "fields": [ { "declarator": "containerService\n = new AzurePathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new AzurePathContainerService();", "type": "PathContainerService", "var_name": ...
{ "body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n final BlobRequestOptions options = new BlobRequestOptions();\n if(containerService.isContainer(folder)) {\n // Container n...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_774
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/preferences/SecurityApplicationGroupSupportDirectoryFinderTest.java", "identifier": "SecurityApplicationGroupSupportDirectoryFinderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFind() {\n assertNotNull(new SecurityApplicationGroupSupportDirectoryFinder().find());\n assertEquals(\"~/Library/Group Containers/G69SCX94XU.duck/Library/Application Support/duck\",\n new SecurityApplicationGroupSupportDirectoryFinder().find().getAbb...
{ "fields": [ { "declarator": "log = Logger.getLogger(SecurityApplicationGroupSupportDirectoryFinder.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SecurityApplicationGroupSupportDirectoryFinder.class);", "type": "Logger"...
{ "body": "@Override\n public Local find() {\n final NSFileManager manager = NSFileManager.defaultManager();\n if(manager.respondsToSelector(Foundation.selector(\"containerURLForSecurityApplicationGroupIdentifier:\"))) {\n final NSURL group = manager\n .containerURLForSecuri...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1388
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftAuthenticationServiceTest.java", "identifier": "SwiftAuthenticationServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetRequest() throws Exception {\n final SwiftAuthenticationService s = new SwiftAuthenticationService();\n final SwiftProtocol protocol = new SwiftProtocol() {\n @Override\n public String getContext() {\n return \"/v1.0\";\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(SwiftAuthenticationService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SwiftAuthenticationService.class);", "type": "Logger", "var_name": "log" } ], "...
{ "body": "public Set<? extends AuthenticationRequest> getRequest(final Host bookmark, final LoginCallback prompt)\n throws LoginCanceledException {\n final StringBuilder url = new StringBuilder();\n url.append(bookmark.getProtocol().getScheme().toString()).append(\"://\");\n url.appen...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1222
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageWebsiteDistributionConfigurationTest.java", "identifier": "GoogleStorageWebsiteDistributionConfigurationTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test\n public void testGetProtocol() {\n final DistributionConfiguration configuration\n = new GoogleStorageWebsiteDistributionConfiguration(session);\n assertEquals(\"storage.googleapis.com\", configuration.getHostname());\n }", "class_method_signature": "GoogleStorageWeb...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final GoogleStorageSession session;", "type": "GoogleStorageSession", "var_name": "session" }, { "declarator": "containerService\n = new GoogleStoragePathContainerSe...
{ "body": "@Override\n public String getHostname() {\n return session.getHost().getProtocol().getDefaultHostname();\n }", "class_method_signature": "GoogleStorageWebsiteDistributionConfiguration.getHostname()", "constructor": false, "full_signature": "@Override public String getHostname()", "iden...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_79
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3LoggingFeatureTest.java", "identifier": "S3LoggingFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testGetConfiguration() throws Exception {\n final S3LoggingFeature feature = new S3LoggingFeature(session);\n final Path bucket = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n feature.setConfiguration(bucket, new Log...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3LoggingFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3LoggingFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public LoggingConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n if(bucket.isRoot()) {\n return LoggingConfiguration.empty();\n }\n if(file.getType().contains(Path.Ty...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_96
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3DefaultDeleteFeatureTest.java", "identifier": "S3DefaultDeleteFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testDeleteFile() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final Path test = new Path(container, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n new S3TouchFe...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3DefaultDeleteFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3DefaultDeleteFeature.class);", "type": "Logger", "var_name": "log" }, { "de...
{ "body": "public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n final List<Path> containers = new ArrayList<Path>();\n for(Path file : files.keySet()) {\n if(containerService.isContainer(file)) {\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_518
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVMoveFeatureTest.java", "identifier": "DAVMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n public void testMoveDirectory() throws Exception {\n final Path test = new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory));\n new DAVDirectoryFeature(session).mkdir(test, null, new TransferStatus())...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final DAVSession session;", "type": "DAVSession", "var_name": "session" } ], "file": "webdav/src/main/java/ch/cyberduck/core/dav/DAVMoveFeature.java", "identifier": "DAVMoveFea...
{ "body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n try {\n final String target = new DefaultUrlProvider(session.getHost()).toUrl(renam...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_148
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java", "identifier": "S3ObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testListBuckenameAnonymous() throws Exception {\n final Host host = new Host(new S3Protocol(), \"dist.springframework.org.s3.amazonaws.com\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n final S3...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3ObjectListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3ObjectListService.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, String.valueOf(Path.DELIMITER));\n }", "class_method_signature": "S3ObjectListService.list(final Path directory, final ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_627
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraTouchFeatureTest.java", "identifier": "SpectraTouchFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTouch() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties().getProperty(\"spectra.hostname\"), Integer...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final SpectraSession session;", "type": "SpectraSession", "var_name": "session" }, { "declarator": "writer", "modifier": "private final", "original_string": "pr...
{ "body": "@Override\n public Path touch(final Path file, final TransferStatus transferStatus) throws BackgroundException {\n final SpectraBulkService bulk = new SpectraBulkService(session);\n final TransferStatus status = new TransferStatus();\n bulk.pre(Transfer.Type.upload, Collections.sing...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_277
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPMoveFeatureTest.java", "identifier": "FTPMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractFTPTest" }
{ "body": "@Test\n public void testMove() throws Exception {\n final FTPWorkdirService workdir = new FTPWorkdirService(session);\n final Path test = new Path(workdir.find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new FTPTouchFeature(session).touch(test, new TransferStatus...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final FTPSession session;", "type": "FTPSession", "var_name": "session" }, { "declarator": "delete", "modifier": "private", "original_string": "private Delete d...
{ "body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n try {\n if(status.isExists()) {\n delete.delete(Collections.singleto...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1371
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftContainerListServiceTest.java", "identifier": "SwiftContainerListServiceTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testList() throws Exception {\n final AttributedList<Path> list = new SwiftContainerListService(session, new SwiftLocationFeature.SwiftRegion(null)\n ).list(new Path(String.valueOf(Path.DELIMITER), EnumSet.of(Path.Type.volume, Path.Type.directory)), new DisabledListProg...
{ "fields": [ { "declarator": "log = Logger.getLogger(SwiftContainerListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SwiftContainerListService.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"List containers for %s\", session));\n }\n try {\n final AttributedList...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1234
{ "fields": [], "file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2MoveFeatureTest.java", "identifier": "B2MoveFeatureTest", "interfaces": "", "superclass": "extends AbstractB2Test" }
{ "body": "@Test\n public void testMove() throws Exception {\n final B2FileidProvider fileid = new B2FileidProvider(session).withCache(cache);\n final Path container = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final String name = new AlphanumericRandomS...
{ "fields": [ { "declarator": "containerService\n = new B2PathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new B2PathContainerService();", "type": "PathContainerService", "var_name": "conta...
{ "body": "@Override\n public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback delete, final ConnectionCallback callback) throws BackgroundException {\n final Path copy = proxy.copy(source, target, status.length(source.attributes().getSize()), callback);\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_298
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureMetadataFeatureTest.java", "identifier": "AzureMetadataFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetMetadata() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getProperties().getProperty(\"azure.key\")\n ))...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final AzureSession session;", "type": "AzureSession", "var_name": "session" }, { "declarator": "context", "modifier": "private final", "original_string": "priva...
{ "body": "@Override\n public void setMetadata(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n final BlobRequestOptions options = new BlobRequestOptions();\n if(containerService.isContainer(file)) {\n final CloudBlobContainer containe...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_762
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesQuarantineServiceTest.java", "identifier": "LaunchServicesQuarantineServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetWhereEmptyUrl() throws Exception {\n final QuarantineService q = new LaunchServicesQuarantineService();\n q.setWhereFrom(new NullLocal(\"/\", \"n\"), null);\n q.setWhereFrom(new NullLocal(\"/\", \"n\"), StringUtils.EMPTY);\n }", "class_method_signatur...
{ "fields": [ { "declarator": "log = Logger.getLogger(LaunchServicesQuarantineService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LaunchServicesQuarantineService.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Override\n public void setWhereFrom(final Local file, final String dataUrl) throws LocalAccessDeniedException {\n synchronized(lock) {\n if(StringUtils.isBlank(dataUrl)) {\n log.warn(\"No data url given\");\n return;\n }\n if(!this.s...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_332
{ "fields": [], "file": "nio/src/test/java/ch/cyberduck/core/nio/LocalSessionTest.java", "identifier": "LocalSessionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void toPath() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n assertNotNull(session...
{ "fields": [ { "declarator": "log = Logger.getLogger(LocalSession.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LocalSession.class);", "type": "Logger", "var_name": "log" }, { "declarator": "lock", ...
{ "body": "public java.nio.file.Path toPath(final Path file) throws LocalAccessDeniedException {\n return this.toPath(file.getAbsolute());\n }", "class_method_signature": "LocalSession.toPath(final Path file)", "constructor": false, "full_signature": "public java.nio.file.Path toPath(final Path file)"...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_918
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/worker/DefaultExceptionMappingServiceTest.java", "identifier": "DefaultExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMap() {\n assertEquals(\"Error\", new DefaultExceptionMappingService().map(new NullPointerException()).getMessage());\n assertEquals(\"Unknown application error.\", new DefaultExceptionMappingService().map(new NullPointerException()).getDetail());\n assertEqu...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/worker/DefaultExceptionMappingService.java", "identifier": "DefaultExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "DefaultExceptionMappingService.map(final Throwable failure)", "constructor": fa...
{ "body": "@Override\n public BackgroundException map(final Throwable failure) {\n final StringBuilder buffer = new StringBuilder();\n if(failure instanceof RuntimeException) {\n this.append(buffer, LocaleFactory.localizedString(\"Unknown application error\"));\n }\n this.app...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_80
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3LoggingFeatureTest.java", "identifier": "S3LoggingFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n new S3LoggingFeature(session).getConfiguration(\n new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory))\n );\n }", "class_method_signature": "S3LoggingFeatureTe...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3LoggingFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3LoggingFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public LoggingConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n if(bucket.isRoot()) {\n return LoggingConfiguration.empty();\n }\n if(file.getType().contains(Path.Ty...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1408
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftUrlProviderTest.java", "identifier": "SwiftUrlProviderTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testTempUrl() {\n final Region region = new Region(\"DFW\", URI.create(\"http://storage101.hkg1.clouddrive.com/v1/MossoCloudFS_59113590-c679-46c3-bf62-9d7c3d5176ee\"), URI.create(\"http://m\"));\n Map<Region, AccountInfo> accounts = new HashMap<Region, AccountInfo>();\n...
{ "fields": [ { "declarator": "log = Logger.getLogger(SwiftUrlProvider.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SwiftUrlProvider.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "protected DescriptiveUrlBag sign(final Region region, final Path file, final long expiry) {\n if(!accounts.containsKey(region)) {\n log.warn(String.format(\"No account info for region %s available required to sign temporary URL\", region));\n return DescriptiveUrlBag.empty();\n...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1058
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/TransferSpeedometerTest.java", "identifier": "TransferSpeedometerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testReset() throws Exception {\n final DownloadTransfer transfer = new DownloadTransfer(new Host(new TestProtocol()), new Path(\"/p\", EnumSet.of(Path.Type.file)), new Local(\"/t\"));\n final TransferSpeedometer s = new TransferSpeedometer(transfer);\n transfer.a...
{ "fields": [ { "declarator": "log = Logger.getLogger(TransferSpeedometer.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TransferSpeedometer.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public void reset() {\n final long timestamp = System.currentTimeMillis();\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Reset with timestamp %d\", timestamp));\n }\n this.reset(timestamp, transfer.getTransferred());\n }", "class_method_signature": "Tr...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1326
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/auth/SFTPNoneAuthenticationTest.java", "identifier": "SFTPNoneAuthenticationTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test(expected = LoginFailureException.class)\n @Ignore\n public void testAuthenticate() throws Exception {\n assertFalse(new SFTPNoneAuthentication(session).authenticate(session.getHost(), new DisabledLoginCallback(), new DisabledCancelCallback()));\n }", "class_method_signature": "SFTPN...
{ "fields": [ { "declarator": "log = Logger.getLogger(SFTPNoneAuthentication.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SFTPNoneAuthentication.class);", "type": "Logger", "var_name": "log" }, { "de...
{ "body": "@Override\n public Boolean authenticate(final Host bookmark, final LoginCallback prompt, final CancelCallback cancel)\n throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Login using none authentication with credentials %s\", bookmark.getCr...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_220
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPStatListServiceTest.java", "identifier": "FTPStatListServiceTest", "interfaces": "", "superclass": "extends AbstractFTPTest" }
{ "body": "@Test\n public void testList() throws Exception {\n final ListService service = new FTPStatListService(session,\n new CompositeFileEntryParser(Collections.singletonList(new UnixFTPEntryParser())));\n final Path directory = new FTPWorkdirService(session).find();\n final Pa...
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPListService.class);", "type": "Logger", "var_name": "log" }, { "declarator": "sess...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final int response = session.getClient().stat(directory.getAbsolute());\n if(FTPReply.isPositiveCompletion(response)) {\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_670
{ "fields": [], "file": "importer/src/test/java/ch/cyberduck/core/importer/WinScpBookmarkCollectionTest.java", "identifier": "WinScpBookmarkCollectionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = AccessDeniedException.class)\n public void testParseNotFound() throws Exception {\n new WinScpBookmarkCollection().parse(new ProtocolFactory(Collections.emptySet()), new Local(System.getProperty(\"java.io.tmpdir\"), \"f\"));\n }", "class_method_signature": "WinScpBookmarkCol...
{ "fields": [ { "declarator": "log = Logger.getLogger(WinScpBookmarkCollection.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(WinScpBookmarkCollection.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {\n try (final BufferedReader in = new BufferedReader(new InputStreamReader(file.getInputStream(), StandardCharsets.UTF_8))) {\n Host current = null;\n String lin...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_365
{ "fields": [], "file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveFindFeatureTest.java", "identifier": "DriveFindFeatureTest", "interfaces": "", "superclass": "extends AbstractDriveTest" }
{ "body": "@Test\n public void testFind() throws Exception {\n final Path file = new Path(DriveHomeFinderService.MYDRIVE_FOLDER, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache);\n ...
{ "fields": [ { "declarator": "fileid", "modifier": "private final", "original_string": "private final DriveFileidProvider fileid;", "type": "DriveFileidProvider", "var_name": "fileid" } ], "file": "googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveFindFeature.java...
{ "body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n try {\n fileid.getFileid(file, new DisabledListProgressListener());\n return true;\n }\n catch(NotfoundException e) {\n return false;\n }\n }", "class_method_...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_735
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesApplicationFinderTest.java", "identifier": "LaunchServicesApplicationFinderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFindByBundleIdentifier() {\n ApplicationFinder f = new LaunchServicesApplicationFinder();\n assertEquals(new Application(\"com.apple.Preview\", \"Preview\"), f.getDescription(\"com.apple.Preview\"));\n assertEquals(Application.notfound, f.getDescription(\"com...
{ "fields": [ { "declarator": "log = Logger.getLogger(LaunchServicesApplicationFinder.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LaunchServicesApplicationFinder.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Override\n public Application getDescription(final String search) {\n if(applicationNameCache.contains(search)) {\n return applicationNameCache.get(search);\n }\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Find application for %s\", search));\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1263
{ "fields": [], "file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2LargeUploadWriteFeatureTest.java", "identifier": "B2LargeUploadWriteFeatureTest", "interfaces": "", "superclass": "extends AbstractB2Test" }
{ "body": "@Test\n public void testWrite() throws Exception {\n final B2FileidProvider fileid = new B2FileidProvider(session).withCache(cache);\n final B2LargeUploadWriteFeature feature = new B2LargeUploadWriteFeature(session, fileid);\n final Path container = new Path(\"test-cyberduck\", Enum...
{ "fields": [ { "declarator": "log = Logger.getLogger(B2LargeUploadWriteFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(B2LargeUploadWriteFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public StatusOutputStream<VersionId> write(final Path file, final TransferStatus status, final ConnectionCallback callback) {\n final LargeUploadOutputStream proxy = new LargeUploadOutputStream(file, status);\n return new HttpResponseOutputStream<VersionId>(new MemorySegementin...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_38
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipartUploadServiceTest.java", "identifier": "S3MultipartUploadServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testUploadSinglePart() throws Exception {\n final S3MultipartUploadService service = new S3MultipartUploadService(session, new S3WriteFeature(session, new S3DisabledMultipartService()), 5 * 1024L, 2);\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumS...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3MultipartUploadService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3MultipartUploadService.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public StorageObject upload(final Path file, final Local local, final BandwidthThrottle throttle, final StreamListener listener,\n final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final ThreadPool pool = Thre...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_559
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVSessionTest.java", "identifier": "DAVSessionTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n public void testTrustChain2() throws Exception {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.io\");\n final AtomicBoolean verified = new AtomicBoolean();\n final DAVSession session = new DAVSession(host, new DefaultX509TrustManager() {\n @Ov...
{ "fields": [ { "declarator": "log = Logger.getLogger(DAVSession.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DAVSession.class);", "type": "Logger", "var_name": "log" }, { "declarator": "redirect\n ...
{ "body": "@Override\n public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException {\n // Always inject new pool to builder on connect because the pool is shutdown on disconnect\n final HttpClientBuilder pool = builder.build(proxy, thi...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_109
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3VersionedObjectListServiceTest.java", "identifier": "S3VersionedObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testNoDirectoyPlaceholderWithChildren() throws Exception {\n final Path bucket = new Path(\"versioning-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path directory = new Path(bucket, new AlphanumericRandomStringService().random(...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3VersionedObjectListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3VersionedObjectListService.class);", "type": "Logger", "var_name": "log" }, ...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n final ThreadPool pool = ThreadPoolFactory.get(\"list\", concurrency);\n try {\n final String prefix = this.createPrefix(directory);\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1218
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageAccessControlListFeatureTest.java", "identifier": "GoogleStorageAccessControlListFeatureTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory));\n final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(GoogleStorageAccessControlListFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GoogleStorageAccessControlListFeature.class);", "type": "Logger", "var_name"...
{ "body": "@Override\n public Acl getPermission(final Path file) throws BackgroundException {\n try {\n final Acl acl = new Acl();\n if(containerService.isContainer(file)) {\n final BucketAccessControls controls = session.getClient().bucketAccessControls().list(\n ...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1074
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/download/DownloadRegexPriorityComparatorTest.java", "identifier": "DownloadRegexPriorityComparatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompare() {\n assertEquals(-1, new DownloadRegexPriorityComparator(\".*\\\\.html\").compare(\n new Path(\"f.html\", EnumSet.of(Path.Type.file)), new Path(\"g.t\", EnumSet.of(Path.Type.file))));\n assertEquals(1, new DownloadRegexPriorityComparator(\"....
{ "fields": [ { "declarator": "pattern", "modifier": "private final", "original_string": "private final String pattern;", "type": "String", "var_name": "pattern" } ], "file": "core/src/main/java/ch/cyberduck/core/transfer/download/DownloadRegexPriorityComparator.java", "ide...
{ "body": "@Override\n public int compare(Path o1, Path o2) {\n final String c1 = PathNormalizer.name(o1.getAbsolute());\n final boolean c2 = PathNormalizer.name(o2.getAbsolute()).matches(pattern);\n if(c1.matches(pattern) && c2) {\n return 0;\n }\n if(c1.matches(patte...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1424
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/TerminalTransferFactoryTest.java", "identifier": "TerminalTransferFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreate() throws Exception {\n final CommandLineParser parser = new PosixParser();\n\n final Transfer transfer = new TerminalTransferFactory().create(parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--download\", \"rackspace://cdn.cyberduck.ch/remote\"})...
{ "fields": [], "file": "cli/src/main/java/ch/cyberduck/cli/TerminalTransferFactory.java", "identifier": "TerminalTransferFactory", "interfaces": "", "methods": [ { "class_method_signature": "TerminalTransferFactory.create(final CommandLine input, final Host host, final Path remote, final List<Trans...
{ "body": "public Transfer create(final CommandLine input, final Host host, final Path remote, final List<TransferItem> items)\n throws BackgroundException {\n final Transfer transfer;\n final TerminalAction type = TerminalActionFinder.get(input);\n if(null == type) {\n thro...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_871
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/shared/DefaultUrlProviderTest.java", "identifier": "DefaultUrlProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSftp() {\n final Host host = new Host(new TestProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.sftp;\n }\n }, \"test.cyberduck.ch\", new Credentials(\n \"u\", \"p\"\n ));\n ...
{ "fields": [ { "declarator": "host", "modifier": "private final", "original_string": "private final Host host;", "type": "Host", "var_name": "host" } ], "file": "core/src/main/java/ch/cyberduck/core/shared/DefaultUrlProvider.java", "identifier": "DefaultUrlProvider", "in...
{ "body": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n if(file.attributes().getLink() != DescriptiveUrl.EMPTY) {\n list.add(file.attributes().getLink());\n }\n list.add(new DescriptiveUrl(URI.create...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...