id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
79564911_1168
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/URIEncoderTest.java", "identifier": "URIEncoderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEncodeRelativeUri() {\n assertEquals(\"a/p\", URIEncoder.encode(\"a/p\"));\n assertEquals(\"a/p/\", URIEncoder.encode(\"a/p/\"));\n }", "class_method_signature": "URIEncoderTest.testEncodeRelativeUri()", "constructor": false, "full_signature": "@Test public...
{ "fields": [ { "declarator": "log = Logger.getLogger(URIEncoder.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(URIEncoder.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/ch/cy...
{ "body": "public static String encode(final String input) {\n try {\n final StringBuilder b = new StringBuilder();\n final StringTokenizer t = new StringTokenizer(input, \"/\");\n if(!t.hasMoreTokens()) {\n return input;\n }\n if(StringUtil...
{ "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_1492
{ "fields": [], "file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxDeleteFeatureTest.java", "identifier": "DropboxDeleteFeatureTest", "interfaces": "", "superclass": "extends AbstractDropboxTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testDeleteNotFound() throws Exception {\n final Path test = new Path(new DropboxHomeFinderFeature(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new DropboxDeleteFeature(session).delete(Collections.singl...
{ "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 void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n for(Path file : files.keySet()) {\n try {\n callback.delete(file);\n // Delete the file or folder a...
{ "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_594
{ "fields": [], "file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/impl/CryptoDirectoryV7ProviderTest.java", "identifier": "CryptoDirectoryV7ProviderTest", "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(CryptoDirectoryV7Provider.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CryptoDirectoryV7Provider.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 ciphertextName = cryptomator.getFileNameCryptor().encryptFilename(BaseEncoding.base64Url(),\n 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_982
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java", "identifier": "HostParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParseScheme() {\n final HostParser.Value<String> value = new HostParser.Value<>();\n final String test = \"https:\";\n final HostParser.StringReader reader = new HostParser.StringReader(test);\n\n assertTrue(HostParser.parseScheme(reader, value));\n ...
{ "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": "static boolean parseScheme(final StringReader reader, final Value<String> scheme) {\n final StringBuilder stringBuilder = new StringBuilder();\n int tracker = reader.position;\n while(!reader.endOfString()) {\n final char c = (char) reader.read();\n if(Character.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_1187
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageMoveFeatureTest.java", "identifier": "GoogleStorageMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test\n public void testMove() throws Exception {\n final Path bucket = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(bucket, new AsciiRandomStringService().random(), EnumSet.of(Path.Type.file));\n assertNotNull(new ...
{ "fields": [ { "declarator": "containerService\n = new GoogleStoragePathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new GoogleStoragePathContainerService();", "type": "PathContainerService", ...
{ "body": "@Override\n public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n final Path copy = new GoogleStorageCopyFeature(session).copy(source, target, status, connecti...
{ "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_828
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/LoginConnectionServiceTest.java", "identifier": "LoginConnectionServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = LoginCanceledException.class)\n public void testConnectionWarning() throws Exception {\n final Host host = new Host(new TestProtocol(), \"test.cyberduck.ch\", new Credentials(\n \"u\", \"p\"\n ));\n final AtomicBoolean warned = new AtomicBoolean(false);\n...
{ "fields": [ { "declarator": "log = Logger.getLogger(LoginConnectionService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LoginConnectionService.class);", "type": "Logger", "var_name": "log" }, { "de...
{ "body": "@Override\n public void connect(final Session<?> session, final Cache<Path> cache, final CancelCallback callback) throws BackgroundException {\n if(session.isConnected()) {\n this.close(session);\n }\n final Host bookmark = session.getHost();\n // Try to resolve th...
{ "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_1353
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftMoveFeatureTest.java", "identifier": "SwiftMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testMoveNotFound() 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(contai...
{ "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_605
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraFindFeatureTest.java", "identifier": "SpectraFindFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\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().getProperty(\"spectra.hostname\"), ...
{ "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_255
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPListResponseReaderTest.java", "identifier": "FTPListResponseReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDirectoryWithinSameName() throws Exception {\n // #8577\n final Path directory = new Path(\"/aaa_bbb/untitled folder\", EnumSet.of(Path.Type.directory));\n final String[] lines = new String[]{\n \"drwx------ 0 null null 0 Feb 4 21:40 ...
{ "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_740
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/local/WorkspaceIconServiceTest.java", "identifier": "WorkspaceIconServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetProgress() throws Exception {\n final WorkspaceIconService s = new WorkspaceIconService();\n final Local file = new Local(PreferencesFactory.get().getProperty(\"tmp.dir\"),\n UUID.randomUUID().toString());\n LocalTouchFactory.get().touch(fil...
{ "fields": [], "file": "core/dylib/src/main/java/ch/cyberduck/core/local/WorkspaceIconService.java", "identifier": "WorkspaceIconService", "interfaces": "implements IconService", "methods": [ { "class_method_signature": "WorkspaceIconService.set(final Local file, final String image)", "constr...
{ "body": "protected boolean update(final Local file, final NSImage icon) {\n synchronized(NSWorkspace.class) {\n // Specify 0 if you want to generate icons in all available icon representation formats\n final NSWorkspace workspace = NSWorkspace.sharedWorkspace();\n if(workspac...
{ "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_310
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureReadFeatureTest.java", "identifier": "AzureReadFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testReadRange() 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": "log = Logger.getLogger(AzureReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(AzureReadFeature.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 final CloudBlob blob = session.getClient().getContainerReference(containerService.getContainer(file).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_1216
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageAccessControlListFeatureTest.java", "identifier": "GoogleStorageAccessControlListFeatureTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test\n public void testReadWithDelimiter() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory));\n final Path test = new GoogleStorageTouchFeature(session).touch(new Path(new Path(container, UUID.randomUUID().toString(), EnumSet.of(P...
{ "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_193
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/cloudfront/WebsiteCloudFrontDistributionConfigurationTest.java", "identifier": "WebsiteCloudFrontDistributionConfigurationTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testGetName() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname()));\n final CloudFrontDistributionConfiguration configuration = new WebsiteCloudFrontDistributionConfiguration(\n session, new DisabledX5...
{ "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 String getName(final Distribution.Method method) {\n if(method.equals(Distribution.WEBSITE)) {\n return method.toString();\n }\n return super.getName(method);\n }", "class_method_signature": "WebsiteCloudFrontDistributionConfiguration.getName(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_469
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSSessionTest.java", "identifier": "SDSSessionTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test(expected = ConnectionRefusedException.class)\n public void testProxyNoConnect() throws Exception {\n final Host host = new Host(new SDSProtocol(), \"duck.dracoon.com\", new Credentials(\n System.getProperties().getProperty(\"sds.user\"), System.getProperties().getProperty(\"sds.k...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSSession.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSSession.class);", "type": "Logger", "var_name": "log" }, { "declarator": "SDS_AUTH_TOK...
{ "body": "@Override\n protected SDSApiClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException {\n final HttpClientBuilder configuration = builder.build(proxy, this, prompt);\n if(PreferencesFactory.get().getBoolean(\"sds.oauth.migrate.enabl...
{ "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_1095
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/diagnostics/ReachabilityFactoryTest.java", "identifier": "ReachabilityFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGet() {\n assertNotNull(ReachabilityFactory.get());\n }", "class_method_signature": "ReachabilityFactoryTest.testGet()", "constructor": false, "full_signature": "@Test public void testGet()", "identifier": "testGet", "invocations": [ "assertNotNull", "...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/diagnostics/ReachabilityFactory.java", "identifier": "ReachabilityFactory", "interfaces": "", "methods": [ { "class_method_signature": "ReachabilityFactory.ReachabilityFactory()", "constructor": true, "full_signature": "protec...
{ "body": "public static Reachability get() {\n return new ReachabilityFactory().create();\n }", "class_method_signature": "ReachabilityFactory.get()", "constructor": false, "full_signature": "public static Reachability get()", "identifier": "get", "invocations": [ "create" ], "modifiers":...
{ "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_890
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/serializer/TransferDictionaryTest.java", "identifier": "TransferDictionaryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSerializeLastSelectedAction() throws Exception {\n final Path p = new Path(\"t\", EnumSet.of(Path.Type.directory));\n final SyncTransfer transfer = new SyncTransfer(new Host(new TestProtocol()), new TransferItem(p, new NullLocal(\"p\", \"t\") {\n @Overrid...
{ "fields": [ { "declarator": "log = Logger.getLogger(TransferDictionary.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TransferDictionary.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "public <T> Transfer deserialize(final T serialized) {\n final Deserializer dict = factory.create(serialized);\n final Object hostObj = dict.objectForKey(\"Host\");\n if(null == hostObj) {\n log.warn(\"Missing host in transfer\");\n return null;\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_486
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java", "identifier": "SDSDelegatingMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test\n public void testMoveToEncryptedDataRoom() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room1 = new Path(\"test\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n room1.setAttr...
{ "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_691
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java", "identifier": "NSImageIconCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void testIconForPathPdfType() throws Exception {\n final Path f = new Path(\"/f.pdf\", EnumSet.of(Path.Type.file));\n final NSImageIconCache cache = new NSImageIconCache();\n NSImage icon = cache.fileIcon(f, 16);\n assertNotNull(icon);\n ass...
{ "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_1328
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPTimestampFeatureTest.java", "identifier": "SFTPTimestampFeatureTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test\n public void testSetTimestamp() 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())...
{ "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/SFTPTimestampFeature.java", "identifier": "SFTP...
{ "body": "@Override\n public void setTimestamp(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n // We must both set the accessed and modified time. See AttribFlags.SSH_FILEXFER_ATTR_V3_ACMODTIME\n // All times are represented as seconds from Jan 1, ...
{ "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_1282
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPListServiceTest.java", "identifier": "SFTPListServiceTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testListFile() throws Exception {\n final Path home = new SFTPHomeDirectoryService(session).find();\n final Path f = new Path(home, \"test\", EnumSet.of(Path.Type.directory));\n final SFTPListService service = new SFTPListServi...
{ "fields": [ { "declarator": "log = Logger.getLogger(SFTPListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SFTPListService.class);", "type": "Logger", "var_name": "log" }, { "declarator": "se...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> children = new AttributedList<Path>();\n final RemoteDirectory handle = session.sftp().openDir(directory....
{ "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_384
{ "fields": [], "file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveAttributesFinderFeatureTest.java", "identifier": "DriveAttributesFinderFeatureTest", "interfaces": "", "superclass": "extends AbstractDriveTest" }
{ "body": "@Test\n public void testFind() throws Exception {\n final Path test = new Path(DriveHomeFinderService.MYDRIVE_FOLDER, UUID.randomUUID().toString() + \".txt\", EnumSet.of(Path.Type.file));\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache);\n new D...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final DriveSession session;", "type": "DriveSession", "var_name": "session" }, { "declarator": "fileid", "modifier": "private final", "original_string": "privat...
{ "body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n if(new PathContainerService().isContainer(file)) {\n return PathAttributes.EMPTY;\n }\n final Path quer...
{ "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_804
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/date/RemainingPeriodFormatterTest.java", "identifier": "RemainingPeriodFormatterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFormat() {\n RemainingPeriodFormatter f = new RemainingPeriodFormatter();\n assertEquals(\"5 seconds remaining\", f.format(5L));\n assertEquals(\"5 minutes remaining\", f.format(5 * 60));\n assertEquals(\"60 minutes remaining\", f.format(60 * 60));\n ...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/date/RemainingPeriodFormatter.java", "identifier": "RemainingPeriodFormatter", "interfaces": "implements PeriodFormatter", "methods": [ { "class_method_signature": "RemainingPeriodFormatter.format(final long remaining)", "constructo...
{ "body": "@Override\n public String format(final long remaining) {\n StringBuilder b = new StringBuilder();\n if(remaining < 0) {\n // File sizes larger than advertised\n return LocaleFactory.localizedString(\"Unknown\");\n }\n if(remaining > 7200) { // More than ...
{ "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_1451
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/CommandLineUriParserTest.java", "identifier": "CommandLineUriParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDefaultWebDAVForHttpScheme() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final CommandLine input = parser.parse(new Options(), new String[]{});\n\n final ProtocolFactory factory = new ProtocolFactory(new LinkedHashSet<>(Arrays.a...
{ "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_1001
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/upload/ResumeFilterTest.java", "identifier": "ResumeFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPrepareFalse() throws Exception {\n final ResumeFilter f = new ResumeFilter(new DisabledUploadSymlinkResolver(), new NullSession(new Host(new TestProtocol())),\n new UploadFilterOptions().withTemporary(true));\n final Path t = new Path(\"t\", EnumSet....
{ "fields": [ { "declarator": "log = Logger.getLogger(ResumeFilter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ResumeFilter.class);", "type": "Logger", "var_name": "log" }, { "declarator": "upload",...
{ "body": "@Override\n public TransferStatus prepare(final Path file, final Local local, final TransferStatus parent, final ProgressListener progress) throws BackgroundException {\n final TransferStatus status = super.prepare(file, local, parent, progress);\n if(file.isFile()) {\n if(paren...
{ "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_107
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3VersionedObjectListServiceTest.java", "identifier": "S3VersionedObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testDirectoyPlaceholderNoChildren() 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 S3DirectoryFeature(session, new S3WriteFeature(session)).mkdir...
{ "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_557
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVSessionTest.java", "identifier": "DAVSessionTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n public void testLoginNTLM() throws Exception {\n final Host host = new Host(new DAVProtocol(), \"winbuild.iterate.ch\", new Credentials(\n System.getProperties().getProperty(\"webdav.iis.user\"), System.getProperties().getProperty(\"webdav.iis.password\")\n ));\n ...
{ "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 void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n final CredentialsProvider provider = new BasicCredentialsProvider();\n if(preferences.getBoolean(\"webdav.ntlm.windows.authentication.enable\") && WinHtt...
{ "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_36
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3SingleUploadServiceTest.java", "identifier": "S3SingleUploadServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testUploadWithSHA256Checksum() throws Exception {\n final S3SingleUploadService service = new S3SingleUploadService(session, new S3WriteFeature(session, new S3DisabledMultipartService()));\n final Path container = new Path(\"test-eu-central-1-cyberduck\", EnumSet.of(Pat...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3SingleUploadService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3SingleUploadService.class);", "type": "Logger", "var_name": "log" }, { "decl...
{ "body": "@Override\n public StorageObject upload(final Path file, final Local local, final BandwidthThrottle throttle,\n final StreamListener listener, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final S3Protocol.Authenticat...
{ "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_412
{ "fields": [], "file": "storegate/src/test/java/ch/cyberduck/core/storegate/StoregateMoveFeatureTest.java", "identifier": "StoregateMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractStoregateTest" }
{ "body": "@Test\n public void testMoveToDifferentFolder() throws Exception {\n final StoregateIdProvider nodeid = new StoregateIdProvider(session).withCache(cache);\n final Path folder1 = new StoregateDirectoryFeature(session, nodeid).mkdir(\n new Path(String.format(\"/My files/%s\", new ...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final StoregateSession session;", "type": "StoregateSession", "var_name": "session" }, { "declarator": "fileid", "modifier": "private final", "original_string":...
{ "body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback delete, final ConnectionCallback callback) throws BackgroundException {\n try {\n final StoregateApiClient client = session.getClient();\n final MoveFileReque...
{ "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_941
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/PathNormalizerTest.java", "identifier": "PathNormalizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDot() {\n assertEquals(\"/p\", PathNormalizer.normalize(\"/p/.\"));\n assertEquals(\"/\", PathNormalizer.normalize(\"/.\"));\n }", "class_method_signature": "PathNormalizerTest.testDot()", "constructor": false, "full_signature": "@Test public void testDot()...
{ "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 normalize(final String path) {\n return normalize(path, true);\n }", "class_method_signature": "PathNormalizer.normalize(final String path)", "constructor": false, "full_signature": "public static String normalize(final String path)", "identifier": "normalize", "inv...
{ "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_1144
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/CredentialsTest.java", "identifier": "CredentialsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLoginReasonable() {\n Credentials credentials = new Credentials(\"guest\", \"changeme\");\n assertTrue(credentials.validate(new TestProtocol(Scheme.ftp), new LoginOptions()));\n }", "class_method_signature": "CredentialsTest.testLoginReasonable()", "construct...
{ "fields": [ { "declarator": "user = StringUtils.EMPTY", "modifier": "private", "original_string": "private String user = StringUtils.EMPTY;", "type": "String", "var_name": "user" }, { "declarator": "password = StringUtils.EMPTY", "modifier": "private", "or...
{ "body": "public boolean validate(final Protocol protocol, final LoginOptions options) {\n return protocol.validate(this, options);\n }", "class_method_signature": "Credentials.validate(final Protocol protocol, final LoginOptions options)", "constructor": false, "full_signature": "public boolean vali...
{ "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_1390
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftAuthenticationServiceTest.java", "identifier": "SwiftAuthenticationServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = LoginCanceledException.class)\n public void testGetDefault2NoTenant() throws Exception {\n final SwiftAuthenticationService s = new SwiftAuthenticationService();\n final Credentials credentials = new Credentials(\"u\", \"P\");\n final SwiftProtocol protocol = new Sw...
{ "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_296
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureDeleteFeatureTest.java", "identifier": "AzureDeleteFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDeletePlaceholder() 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 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...
{ "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_783
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/ui/browser/SizeTooltipServiceTest.java", "identifier": "SizeTooltipServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetTooltip() {\n final SizeTooltipService s = new SizeTooltipService();\n final PathAttributes attr = new PathAttributes();\n attr.setSize(-1L);\n assertEquals(\"--\", s.getTooltip(new Path(\"/p\", EnumSet.of(Path.Type.file), attr)));\n attr.set...
{ "fields": [ { "declarator": "sizeFormatter", "modifier": "private final", "original_string": "private final SizeFormatter sizeFormatter;", "type": "SizeFormatter", "var_name": "sizeFormatter" } ], "file": "core/src/main/java/ch/cyberduck/ui/browser/SizeTooltipService.java",...
{ "body": "@Override\n public String getTooltip(final Path file) {\n return sizeFormatter.format(file.attributes().getSize(), true);\n }", "class_method_signature": "SizeTooltipService.getTooltip(final Path file)", "constructor": false, "full_signature": "@Override public String getTooltip(final Pa...
{ "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_279
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPMoveFeatureTest.java", "identifier": "FTPMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractFTPTest" }
{ "body": "@Test\n public void testMoveNotFound() throws Exception {\n final DefaultHomeFinderService workdir = new FTPWorkdirService(session);\n final Path test = new Path(workdir.find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n try {\n new FTPMoveFeature(sessio...
{ "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_629
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraBucketListServiceTest.java", "identifier": "SpectraBucketListServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testListWithRootDefaultPath() 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.ho...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final SpectraSession session;", "type": "SpectraSession", "var_name": "session" } ], "file": "spectra/src/main/java/ch/cyberduck/core/spectra/SpectraBucketListService.java", "i...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> buckets = new AttributedList<Path>();\n final Ds3Client client = new SpectraClientBuilder().wrap(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_500
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSMissingFileKeysSchedulerFeatureTest.java", "identifier": "SDSMissingFileKeysSchedulerFeatureTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test(expected = LoginCanceledException.class)\n public void testWrongPassword() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final SDSMissingFileKeysSchedulerFeature background = new SDSMissingFileKeysSchedulerFeature();\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSMissingFileKeysSchedulerFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSMissingFileKeysSchedulerFeature.class);", "type": "Logger", "var_name": "log...
{ "body": "@Override\n public List<UserFileKeySetRequest> operate(final Session<SDSApiClient> session, final PasswordCallback callback, final Path file) throws BackgroundException {\n try {\n final UserAccountWrapper account = ((SDSSession) session).userAccount();\n if(!account.isEncry...
{ "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_150
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java", "identifier": "S3ObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testListEncodedCharacter() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"us-east-1\");\n final Path placeholder = new S3TouchFeature(sess...
{ "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_1056
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/TransferActionTest.java", "identifier": "TransferActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testForName() {\n assertEquals(TransferAction.overwrite.hashCode(),\n TransferAction.forName(TransferAction.overwrite.name()).hashCode());\n }", "class_method_signature": "TransferActionTest.testForName()", "constructor": false, "full_signature": "@Test...
{ "fields": [ { "declarator": "registry\n = new HashMap<String, TransferAction>()", "modifier": "private static final", "original_string": "private static final Map<String, TransferAction> registry\n = new HashMap<String, TransferAction>();", "type": "Map<String, Tran...
{ "body": "public static TransferAction forName(final String name) {\n return registry.get(name);\n }", "class_method_signature": "TransferAction.forName(final String name)", "constructor": false, "full_signature": "public static TransferAction forName(final String name)", "identifier": "forName", ...
{ "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_853
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/io/StreamCopierTest.java", "identifier": "StreamCopierTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTransferInterrupt() throws Exception {\n final TransferStatus status = new TransferStatus();\n final CyclicBarrier lock = new CyclicBarrier(2);\n final CyclicBarrier exit = new CyclicBarrier(2);\n status.setLength(432768L);\n new Thread(new Runn...
{ "fields": [ { "declarator": "log = Logger.getLogger(StreamCopier.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(StreamCopier.class);", "type": "Logger", "var_name": "log" }, { "declarator": "cancel",...
{ "body": "public void transfer(final InputStream in, final OutputStream out) throws BackgroundException {\n try {\n try {\n if(offset > 0) {\n skip(in, offset);\n }\n final byte[] buffer = new byte[chunksize];\n long tot...
{ "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_1406
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftUrlProviderTest.java", "identifier": "SwiftUrlProviderTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testGet() 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 assertEquals(\"https://storage101.iad3.clouddrive.com/v1/MossoCloudFS_59113590...
{ "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": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n if(file.isFile()) {\n Region region = null;\n try {\n region = regionService.lookup(file);\n }\n catch(Backgr...
{ "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_1113
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/local/TildeExpanderTest.java", "identifier": "TildeExpanderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExpand() {\n assertEquals(System.getProperty(\"user.home\") + \"/f\", new TildeExpander().expand(\"~/f\"));\n }", "class_method_signature": "TildeExpanderTest.testExpand()", "constructor": false, "full_signature": "@Test public void testExpand()", "identifier": ...
{ "fields": [ { "declarator": "log = Logger.getLogger(TildeExpander.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TildeExpander.class);", "type": "Logger", "var_name": "log" }, { "declarator": "prefer...
{ "body": "public String expand(final String name) {\n if(name.startsWith(Local.HOME)) {\n final String expanded = preferences.getProperty(\"local.user.home\") + StringUtils.substring(name, 1);\n if(log.isDebugEnabled()) {\n if(!StringUtils.equals(expanded, 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_916
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/worker/ReadMetadataWorkerTest.java", "identifier": "ReadMetadataWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDifferent() throws Exception {\n final List<Path> files = new ArrayList<Path>();\n files.add(new Path(\"a\", EnumSet.of(Path.Type.file)));\n files.add(new Path(\"b\", EnumSet.of(Path.Type.file)));\n files.add(new Path(\"c\", EnumSet.of(Path.Type.file))...
{ "fields": [ { "declarator": "log = Logger.getLogger(ReadMetadataWorker.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ReadMetadataWorker.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@Override\n public Map<String, String> run(final Session<?> session) throws BackgroundException {\n final Metadata feature = session.getFeature(Metadata.class);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Run with feature %s\", feature));\n }\n // Map ...
{ "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_445
{ "fields": [], "file": "osx/src/test/java/ch/cyberduck/ui/cocoa/UserDefaultsDateFormatterTest.java", "identifier": "UserDefaultsDateFormatterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetMediumFormat() {\n final UserDateFormatter f = new UserDefaultsDateFormatter(TimeZone.getDefault().getID());\n assertNotNull(f.getMediumFormat(System.currentTimeMillis(), false));\n assertNotNull(f.getMediumFormat(System.currentTimeMillis(), true));\n }...
{ "fields": [ { "declarator": "locale = NSLocale.currentLocale()", "modifier": "private static final", "original_string": "private static final NSLocale locale = NSLocale.currentLocale();", "type": "NSLocale", "var_name": "locale" }, { "declarator": "timezone", "m...
{ "body": "@Override\n public String getMediumFormat(final long milliseconds, boolean natural) {\n synchronized(mediumDateFormatter) {\n if(-1 == milliseconds) {\n return LocaleFactory.localizedString(\"Unknown\");\n }\n mediumDateNaturalFormatter.setTimeZone(...
{ "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_61
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3MoveFeatureTest.java", "identifier": "S3MoveFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testMoveWithServerSideEncryptionBucketPolicy() throws Exception {\n final Path container = new Path(\"sse-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(container, new AsciiRandomStringService().random(), Enu...
{ "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_280
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private FTPFileEntryParser parser;", "type": "FTPFileEntryParser", "var_name": "parser" } ], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/parser/RumpusFTPEntryParserTest.java", "identifie...
{ "body": "@Test\n public void testParse() {\n FTPFile parsed;\n\n parsed = parser.parseFTPEntry(\n \"drwxr-xr-x folder 0 Oct 18 13:02 Akrilik\"\n );\n assertNotNull(parsed);\n assertEquals(\"Akrilik\", parsed.getName());\n assertEquals(FTPF...
{ "fields": [ { "declarator": "REGEX =\n \"([bcdlfmpSs-])\"\n + \"(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\\\+?\\\\s+\"\n + \"(\\\\d+)?\\\\s+\"\n + \"(\\\\d+)?\\\\s+\"\n + \"(\\\\S+)\\\\s+\...
{ "body": "@Override\n public FTPFile parseFTPEntry(String entry) {\n if(matches(entry)) {\n String typeStr = group(1);\n String filesize = group(18);\n String datestr = group(19) + \" \" + group(20);\n String name = group(21);\n String endtoken = group...
{ "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_1386
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftSessionTest.java", "identifier": "SwiftSessionTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test(expected = LoginFailureException.class)\n public void testLoginFailure() throws Exception {\n final Host host = new Host(new SwiftProtocol(), \"identity.api.rackspacecloud.com\", new Credentials(\n \"a\", \"s\"\n ));\n assertNotNull(session.open(Proxy.DIRECT, new Di...
{ "fields": [ { "declarator": "log = Logger.getLogger(SwiftSession.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SwiftSession.class);", "type": "Logger", "var_name": "log" }, { "declarator": "regionSe...
{ "body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n try {\n final Set<? extends AuthenticationRequest> options = new SwiftAuthenticationService().getRequest(host, prompt);\n for(Iterator<? e...
{ "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_1369
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftReadFeatureTest.java", "identifier": "SwiftReadFeatureTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testDownloadGzip() throws Exception {\n final TransferStatus status = new TransferStatus();\n status.setLength(182L);\n final Path container = new Path(\".ACCESS_LOGS\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion...
{ "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_795
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/ui/comparator/OwnerComparatorTest.java", "identifier": "OwnerComparatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompareFirst() {\n assertEquals(0,\n new OwnerComparator(true).compareFirst(new Path(\"/a\", EnumSet.of(Path.Type.file)), new Path(\"/b\", EnumSet.of(Path.Type.file))));\n final Path p = new Path(\"/a\", EnumSet.of(Path.Type.file));\n p.attribu...
{ "fields": [ { "declarator": "serialVersionUID = -3411022739897657092L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -3411022739897657092L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "core/src/main/j...
{ "body": "@Override\n protected int compareFirst(final Path p1, final Path p2) {\n if(StringUtils.isBlank(p1.attributes().getOwner()) && StringUtils.isBlank(p2.attributes().getOwner())) {\n return 0;\n }\n if(StringUtils.isBlank(p1.attributes().getOwner())) {\n return -1...
{ "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_1410
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftExceptionMappingServiceTest.java", "identifier": "SwiftExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLoginFailure() {\n final GenericException f = new GenericException(\n \"message\", new Header[]{}, new BasicStatusLine(new ProtocolVersion(\"http\", 1, 1), 403, \"Forbidden\"));\n assertTrue(new SwiftExceptionMappingService().map(f) instanceof AccessDenie...
{ "fields": [], "file": "openstack/src/main/java/ch/cyberduck/core/openstack/SwiftExceptionMappingService.java", "identifier": "SwiftExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "SwiftExceptionMappingService.map(final GenericException e)", "constructor":...
{ "body": "@Override\n public BackgroundException map(final GenericException e) {\n final StringBuilder buffer = new StringBuilder();\n this.append(buffer, e.getMessage());\n final StatusLine status = e.getHttpStatusLine();\n if(null != status) {\n this.append(buffer, String....
{ "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_845
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/io/MD5ChecksumComputeTest.java", "identifier": "MD5ChecksumComputeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompute() throws Exception {\n assertEquals(\"a43c1b0aa53a0c908810c06ab1ff3967\",\n new MD5ChecksumCompute().compute(IOUtils.toInputStream(\"input\", Charset.defaultCharset()), new TransferStatus()).hash);\n }", "class_method_signature": "MD5ChecksumCompute...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/io/MD5ChecksumCompute.java", "identifier": "MD5ChecksumCompute", "interfaces": "", "methods": [ { "class_method_signature": "MD5ChecksumCompute.compute(final InputStream in, final TransferStatus status)", "constructor": false, ...
{ "body": "@Override\n public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException {\n return new Checksum(HashAlgorithm.md5, Hex.encodeHexString(this.digest(\"MD5\",\n this.normalize(in, status))));\n }", "class_method_signature": "MD5ChecksumCompute....
{ "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_1040
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/UploadTransferTest.java", "identifier": "UploadTransferTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTemporaryDisabledLargeUpload() throws Exception {\n final Host h = new Host(new TestProtocol());\n final NullSession session = new NullSession(h);\n final AbstractUploadFilter f = new UploadTransfer(h, Collections.emptyList())\n .filter(session, nu...
{ "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 AbstractUploadFilter filter(final Session<?> source, final Session<?> destination, final TransferAction action, final ProgressListener listener) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Filter transfer with action %s and options %s\", action, option...
{ "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_146
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java", "identifier": "S3ObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testListNotFoundFolderMinio() throws Exception {\n final Host host = new Host(new S3Protocol(), \"play.minio.io\", 9000, new Credentials(\n \"Q3AM3UQ867SPQQA43P2F\", \"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG\"\n ));\n ...
{ "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_516
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVMoveFeatureTest.java", "identifier": "DAVMoveFeatureTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n public void testMove() throws Exception {\n final Path test = new DAVTouchFeature(session).touch(new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)), new TransferStatus());\n assertEquals(0L, test.attrib...
{ "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_98
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3DefaultDeleteFeatureTest.java", "identifier": "S3DefaultDeleteFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testDeleteVersionedPlaceholder() throws Exception {\n final Path container = new Path(\"versioning-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final String name = new AlphanumericRandomStringService().random();\n {\n final Path test = ...
{ "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_77
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3PresignedUrlProviderTest.java", "identifier": "S3PresignedUrlProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCustomHostname() {\n final Calendar expiry = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n expiry.add(Calendar.MILLISECOND, (int) TimeUnit.DAYS.toMillis(7));\n final String url = new S3PresignedUrlProvider().create(new Host(new S3Protocol(), \"s3.eu-...
{ "fields": [], "file": "s3/src/main/java/ch/cyberduck/core/s3/S3PresignedUrlProvider.java", "identifier": "S3PresignedUrlProvider", "interfaces": "", "methods": [ { "class_method_signature": "S3PresignedUrlProvider.create(final Host host, final String user, final String secret,\n ...
{ "body": "public String create(final Host host, final String user, final String secret,\n final String bucket, String region, final String key,\n final String method, final long expiry) {\n final S3Protocol.AuthenticationHeaderSignatureVersion signature;\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_453
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSSharesUrlProviderTest.java", "identifier": "SDSSharesUrlProviderTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test\n public void testShareSubRoom() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session, nodeid).mkdir(new Path(new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.dir...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSSharesUrlProvider.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSSharesUrlProvider.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "@Override\n public DescriptiveUrl toDownloadUrl(final Path file, CreateDownloadShareRequest options, final PasswordCallback callback) throws BackgroundException {\n try {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Create download share for %s\", 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_900
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/filter/UploadRegexFilterTest.java", "identifier": "UploadRegexFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAccept() {\n final Pattern pattern = Pattern.compile(\".*~\\\\..*|\\\\.DS_Store|\\\\.svn|CVS\");\n assertFalse(new UploadRegexFilter(pattern).accept(new NullLocal(\".DS_Store\")));\n assertTrue(new UploadRegexFilter(pattern).accept(new NullLocal(\"f\")));\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(UploadRegexFilter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(UploadRegexFilter.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "@Override\n public boolean accept(final Local file) {\n if(pattern.matcher(file.getName()).matches()) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Skip %s excluded with regex\", file));\n }\n return false;\n }\n return 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_1105
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/local/DefaultTemporaryFileServiceTest.java", "identifier": "DefaultTemporaryFileServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testVersion() {\n final String temp = StringUtils.removeEnd(System.getProperty(\"java.io.tmpdir\"), File.separator);\n final String s = System.getProperty(\"file.separator\");\n {\n final Path file = new Path(\"/p/f\", EnumSet.of(Path.Type.file));\n ...
{ "fields": [ { "declarator": "delimiter\n = PreferencesFactory.get().getProperty(\"local.delimiter\")", "modifier": "private final", "original_string": "private final String delimiter\n = PreferencesFactory.get().getProperty(\"local.delimiter\");", "type": "String", "v...
{ "body": "@Override\n public Local create(final Path file) {\n return this.create(new UUIDRandomStringService().random(), file);\n }", "class_method_signature": "DefaultTemporaryFileService.create(final Path file)", "constructor": false, "full_signature": "@Override public Local create(final Path ...
{ "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_687
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java", "identifier": "NSImageIconCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCacheApplicationIcon() {\n final NSImageIconCache cache = new NSImageIconCache();\n final NSImage icon32 = cache.applicationIcon(new Application(\"com.apple.TextEdit\"), 32);\n assertNotNull(icon32);\n assertEquals(32, icon32.size().width.intValue());\...
{ "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 applicationIcon(final Application app, final Integer size) {\n NSImage icon = this.load(app.getIdentifier(), size);\n if(null == icon) {\n final String path = NSWorkspace.sharedWorkspace().absolutePathForAppBundleWithIdentifier(app.getIdentifier());\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_238
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java", "identifier": "FTPMlsdListResponseReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParseMlsdMode775() throws Exception {\n Path path = new Path(\n \"/www\", EnumSet.of(Path.Type.directory));\n String[] replies = new String[]{\n \"modify=20090210192929;perm=fle;type=dir;unique=FE03U10006D95;UNIX.group=1001;UNIX.mode=02775;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_392
{ "fields": [], "file": "storegate/src/test/java/ch/cyberduck/core/storegate/StoregateReadFeatureTest.java", "identifier": "StoregateReadFeatureTest", "interfaces": "", "superclass": "extends AbstractStoregateTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n final StoregateIdProvider nodeid = new StoregateIdProvider(session).withCache(cache);\n final Path room = new StoregateDirectoryFeatu...
{ "fields": [ { "declarator": "log = Logger.getLogger(StoregateReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(StoregateReadFeature.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final StoregateApiClient client = session.getClient();\n final HttpUriRequest request = new HttpGet(String.format(\"%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_668
{ "fields": [], "file": "importer/src/test/java/ch/cyberduck/core/importer/TotalCommanderBookmarkCollectionTest.java", "identifier": "TotalCommanderBookmarkCollectionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParse() throws Exception {\n TotalCommanderBookmarkCollection c = new TotalCommanderBookmarkCollection();\n assertEquals(0, c.size());\n c.parse(new ProtocolFactory(new HashSet<>(Arrays.asList(new TestProtocol(Scheme.ftp), new TestProtocol(Scheme.ftps), new T...
{ "fields": [ { "declarator": "log = Logger.getLogger(TotalCommanderBookmarkCollection.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TotalCommanderBookmarkCollection.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_1294
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPAttributesFinderFeatureTest.java", "identifier": "SFTPAttributesFinderFeatureTest", "interfaces": "", "superclass": "extends AbstractSFTPTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testFindNotFound() throws Exception {\n new SFTPAttributesFinderFeature(session).find(new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)));\n }", "class_method_signature": "SFTPAttributesFinderFeatureTest.testFindNotFound...
{ "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/SFTPAttributesFinderFeature.java", "identifier"...
{ "body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n try {\n final FileAttributes stat;\n if(file.isSymbolicLink()) {\n stat = session.sftp().ls...
{ "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_541
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVDeleteFeatureTest.java", "identifier": "DAVDeleteFeatureTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n public void testDeleteDirectory() throws Exception {\n final Path test = new Path(new DefaultHomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory));\n new DAVDirectoryFeature(session).mkdir(test, null, new TransferStatus());\n asser...
{ "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/DAVDeleteFeature.java", "identifier": "DAVDelet...
{ "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(Map.Entry<Path, TransferStatus> file : files.entrySet()) {\n boole...
{ "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_111
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipartCopyFeatureTest.java", "identifier": "S3MultipartCopyFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testCopyAWS4Signature() throws Exception {\n final Path container = new Path(\"test-eu-central-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3MultipartCopyFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3MultipartCopyFeature.class);", "type": "Logger", "var_name": "log" }, { "de...
{ "body": "@Override\n protected String copy(final Path source, final S3Object destination, final TransferStatus status) throws BackgroundException {\n try {\n final List<MultipartPart> completed = new ArrayList<MultipartPart>();\n // ID for the initiated multipart upload.\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_1017
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/SpeedometerTest.java", "identifier": "SpeedometerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testProgressRemaining() {\n final long start = System.currentTimeMillis();\n Speedometer m = new Speedometer(start, true);\n assertEquals(\"1 B of 5 B (20%, 1 B/sec, 4 seconds remaining)\", m.getProgress(start + 1000L, true, 5L, 1L));\n assertEquals(\"4 B ...
{ "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_1447
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/SingleTransferItemFinderTest.java", "identifier": "SingleTransferItemFinderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDownloadFileToDirectoryTarget() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final String temp = System.getProperty(\"java.io.tmpdir\");\n final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--...
{ "fields": [ { "declarator": "prefixer\n = new WorkdirPrefixer()", "modifier": "private final", "original_string": "private final WorkdirPrefixer prefixer\n = new WorkdirPrefixer();", "type": "WorkdirPrefixer", "var_name": "prefixer" } ], "file": "cli/s...
{ "body": "@Override\n public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) {\n if(input.getOptionValues(action.name()).length == 2) {\n switch(action) {\n case download:\n return new DownloadTransferItemFinder()....
{ "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_812
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/DefaultPathPredicateTest.java", "identifier": "DefaultPathPredicateTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHashcodeCollision() {\n assertNotEquals(\n new DefaultPathPredicate(\n new Path(\"19\", EnumSet.of(Path.Type.file))\n ),\n new DefaultPathPredicate(\n new Path(\"0X\", EnumSet.of(Path.Type.file))\n )...
{ "fields": [ { "declarator": "normalizer = new NFCNormalizer()", "modifier": "private static final", "original_string": "private static final UnicodeNormalizer normalizer = new NFCNormalizer();", "type": "UnicodeNormalizer", "var_name": "normalizer" }, { "declarator": ...
{ "body": "@Override\n public boolean test(final Path test) {\n return this.equals(new DefaultPathPredicate(test));\n }", "class_method_signature": "DefaultPathPredicate.test(final Path test)", "constructor": false, "full_signature": "@Override public boolean test(final Path test)", "identifier":...
{ "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_1152
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/ProtocolFactoryTest.java", "identifier": "ProtocolFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFindProtocolWithProviderInIdentifier() {\n final TestProtocol dav = new TestProtocol(Scheme.dav) {\n @Override\n public String getIdentifier() {\n return \"dav\";\n }\n\n @Override\n public String getPro...
{ "fields": [ { "declarator": "log = Logger.getLogger(ProtocolFactory.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ProtocolFactory.class);", "type": "Logger", "var_name": "log" }, { "declarator": "gl...
{ "body": "public Protocol forName(final String identifier) {\n return this.forName(identifier, null);\n }", "class_method_signature": "ProtocolFactory.forName(final String identifier)", "constructor": false, "full_signature": "public Protocol forName(final String identifier)", "identifier": "forNam...
{ "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_1502
{ "fields": [], "file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxFindFeatureTest.java", "identifier": "DropboxFindFeatureTest", "interfaces": "", "superclass": "extends AbstractDropboxTest" }
{ "body": "@Test\n public void testFindNotFound() throws Exception {\n assertFalse(new DropboxFindFeature(session).find(new Path(new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file))));\n }", "class_method_signature": "DropboxFindFeatureTest.testFindNotFound()", "constructor": f...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final DropboxSession session;", "type": "DropboxSession", "var_name": "session" } ], "file": "dropbox/src/main/java/ch/cyberduck/core/dropbox/DropboxFindFeature.java", "identif...
{ "body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n return new DropboxAttributesFinderFeature(session).find(file) != PathAttributes.EMPTY;\n }\n catch(NotfoundException e...
{ "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_957
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/BookmarkNameProviderTest.java", "identifier": "BookmarkNameProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToString() {\n assertEquals(\"h – FTP\", BookmarkNameProvider.toString(new Host(new TestProtocol(Scheme.ftp), \"h\")));\n final TestProtocol dav = new TestProtocol(Scheme.http) {\n @Override\n public String getName() {\n return \...
{ "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_404
{ "fields": [], "file": "storegate/src/test/java/ch/cyberduck/core/storegate/StoregateDeleteFeatureTest.java", "identifier": "StoregateDeleteFeatureTest", "interfaces": "", "superclass": "extends AbstractStoregateTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testDeleteNotFound() throws Exception {\n final Path test = new Path(String.format(\"/My files/%s\", UUID.randomUUID().toString()), EnumSet.of(Path.Type.file));\n test.attributes().setVersionId(\"n\");\n new StoregateDeleteFeat...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final StoregateSession session;", "type": "StoregateSession", "var_name": "session" }, { "declarator": "fileid", "modifier": "private final", "original_string":...
{ "body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n for(Map.Entry<Path, TransferStatus> file : files.entrySet()) {\n try {\n callback.delete(file.getKey());\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_20
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3UrlProviderTest.java", "identifier": "S3UrlProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToSignedUrl() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname(), new Credentials(\n System.getProperties().getProperty(\"s3.key\"), null\n )));\n final S3UrlProvider provider = new S3UrlPro...
{ "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": "protected DescriptiveUrl sign(final Path file, final int seconds) {\n // Determine expiry time for URL\n final Calendar expiry = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n expiry.add(Calendar.SECOND, seconds);\n final String secret = store.findLoginPassword(session.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_57
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3MoveFeatureTest.java", "identifier": "S3MoveFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testMove() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(container, new AsciiRandomStringService().random(), EnumSet.of(Path.Type.file));\n asser...
{ "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_189
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipartWriteFeatureTest.java", "identifier": "S3MultipartWriteFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testWrite() throws Exception {\n final S3MultipartWriteFeature feature = new S3MultipartWriteFeature(session);\n final Path container = new Path(\"test-eu-central-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final TransferStatus status = n...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3MultipartWriteFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3MultipartWriteFeature.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@Override\n public HttpResponseOutputStream<VersionId> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final S3Object object = new S3WriteFeature(session, new S3DisabledMultipartService())\n .getDetails(file, status)...
{ "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_473
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDirectS3UploadFeatureTest.java", "identifier": "SDSDirectS3UploadFeatureTest", "interfaces": "", "superclass": "extends AbstractS3DirectSDSTest" }
{ "body": "@Test\n public void testUploadBelowMultipartSize() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session);\n final SDSDirectS3UploadFeature feature = new SDSDirectS3UploadFeature(session, nodeid, new SDSDirectS3WriteFeature(session));\n final Path room ...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSDirectS3UploadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSDirectS3UploadFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public VersionId 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 = ThreadPoolFa...
{ "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_920
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/worker/ConcurrentTransferWorkerTest.java", "identifier": "ConcurrentTransferWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBorrow() throws Exception {\n final Host host = new Host(new TestProtocol(), \"test.cyberduck.ch\");\n final Transfer t = new UploadTransfer(host,\n new Path(\"/t\", EnumSet.of(Path.Type.directory)),\n new NullLocal(\"l\"));\n final Logi...
{ "fields": [ { "declarator": "log = Logger.getLogger(ConcurrentTransferWorker.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ConcurrentTransferWorker.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n protected Session<?> borrow(final Connection type) throws BackgroundException {\n switch(type) {\n case source:\n return source.borrow(new BackgroundActionState() {\n @Override\n public boolean isCanceled() {\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_1125
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/HeaderTest.java", "identifier": "HeaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquals() {\n assertEquals(new Header(\"k\", \"v\"), new Header(\"k\", \"v\"));\n assertNotEquals(new Header(\"k\", \"v\"), new Header(\"k\", \"f\"));\n assertNotEquals(new Header(\"k\", \"v\"), new Header(\"m\", \"v\"));\n }", "class_method_signature": "...
{ "fields": [ { "declarator": "name", "modifier": "private", "original_string": "private String name;", "type": "String", "var_name": "name" }, { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String"...
{ "body": "@Override\n public boolean equals(final Object o) {\n if(this == o) {\n return true;\n }\n if(o == null || getClass() != o.getClass()) {\n return false;\n }\n final Header header = (Header) o;\n if(!Objects.equals(name, header.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_1430
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/GlobTransferItemFinderTest.java", "identifier": "GlobTransferItemFinderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNoLocalInOptionsUploadFile() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--upload\", \"rackspace://cdn.cyberduck.ch/remote\"});\n\n final Se...
{ "fields": [ { "declarator": "log = Logger.getLogger(GlobTransferItemFinder.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GlobTransferItemFinder.class);", "type": "Logger", "var_name": "log" } ], "file": "...
{ "body": "@Override\n public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) throws AccessDeniedException {\n if(input.getOptionValues(action.name()).length == 2) {\n final String path = input.getOptionValues(action.name())[1];\n // This...
{ "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_865
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/aquaticprime/ReceiptFactoryTest.java", "identifier": "ReceiptFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreate() {\n assertEquals(new Receipt(null, \"b8e85600dffe\"), new ReceiptFactory(new Local(\"src/test/resources\")).create());\n }", "class_method_signature": "ReceiptFactoryTest.testCreate()", "constructor": false, "full_signature": "@Test public void testCreate...
{ "fields": [ { "declarator": "log = Logger.getLogger(ReceiptFactory.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ReceiptFactory.class);", "type": "Logger", "var_name": "log" }, { "declarator": "APPS...
{ "body": "@Override\n protected License create() {\n return new DefaultLicenseFactory(this).create();\n }", "class_method_signature": "ReceiptFactory.create()", "constructor": false, "full_signature": "@Override protected License create()", "identifier": "create", "invocations": [ "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...
79564911_1060
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/download/ResumeFilterTest.java", "identifier": "ResumeFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAcceptExistsFalse() throws Exception {\n ResumeFilter f = new ResumeFilter(new DisabledDownloadSymlinkResolver(), new NullSession(new Host(new TestProtocol())));\n Path p = new Path(\"a\", EnumSet.of(Path.Type.file));\n p.attributes().setSize(2L);\n as...
{ "fields": [ { "declarator": "log = Logger.getLogger(ResumeFilter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ResumeFilter.class);", "type": "Logger", "var_name": "log" }, { "declarator": "download...
{ "body": "@Override\n public boolean accept(final Path file, final Local local, final TransferStatus parent) throws BackgroundException {\n if(local.isFile()) {\n if(local.exists()) {\n // Read remote attributes\n final PathAttributes attributes = attribute.find(fil...
{ "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_166
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java", "identifier": "S3SessionTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testBucketVirtualHostStyleCustomHost() {\n final Host host = new Host(new S3Protocol(), \"test-us-east-1-cyberduck\");\n assertFalse(new S3Session(host).connect(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback())\n .getConfiguration().ge...
{ "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_536
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVWriteFeatureTest.java", "identifier": "DAVWriteFeatureTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test\n public void testWriteContentRangeThreeBytes() throws Exception {\n final DAVWriteFeature feature = new DAVWriteFeature(session);\n final Path test = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final byte[] source = RandomUtils.nextBytes(3);\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_1349
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftFindFeatureTest.java", "identifier": "SwiftFindFeatureTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testNoCacheNotFound() throws Exception {\n final PathCache cache = new PathCache(1);\n final AttributedList<Path> list = new AttributedList<Path>();\n cache.put(new Path(\"/g\", EnumSet.of(Path.Type.directory)), list);\n final AtomicBoolean b = new AtomicB...
{ "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_1172
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/PermissionTest.java", "identifier": "PermissionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToMode() {\n final Permission permission = new Permission(Permission.Action.read,\n Permission.Action.none, Permission.Action.none);\n assertEquals(\"400\", permission.getMode());\n }", "class_method_signature": "PermissionTest.testToMode()", "...
{ "fields": [ { "declarator": "EMPTY = new Permission(Action.none, Action.none, Action.none) {\n @Override\n public boolean isExecutable() {\n return true;\n }\n\n @Override\n public boolean isReadable() {\n return true;\n }\n\n @Overrid...
{ "body": "public String getMode() {\n return Integer.toString(toInteger(), 8);\n }", "class_method_signature": "Permission.getMode()", "constructor": false, "full_signature": "public String getMode()", "identifier": "getMode", "invocations": [ "toString", "toInteger" ], "modifiers": "...
{ "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_1488
{ "fields": [], "file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxTouchFeatureTest.java", "identifier": "DropboxTouchFeatureTest", "interfaces": "", "superclass": "extends AbstractDropboxTest" }
{ "body": "@Test(expected = AccessDeniedException.class)\n public void testDisallowedName() throws Exception {\n final DropboxTouchFeature touch = new DropboxTouchFeature(session);\n final Path file = new Path(new DropboxHomeFinderFeature(session).find(), String.format(\"~%s.tmp\", UUID.randomUUID()....
{ "fields": [], "file": "dropbox/src/main/java/ch/cyberduck/core/dropbox/DropboxTouchFeature.java", "identifier": "DropboxTouchFeature", "interfaces": "", "methods": [ { "class_method_signature": "DropboxTouchFeature.DropboxTouchFeature(final DropboxSession session)", "constructor": true, ...
{ "body": "@Override\n public boolean isSupported(final Path workdir, final String filename) {\n if(StringUtils.startsWith(filename, \"~$\")) {\n return false;\n }\n if(StringUtils.startsWith(filename, \"~\") && StringUtils.endsWith(filename, \".tmp\")) {\n return false;\...
{ "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_977
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java", "identifier": "HostParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void parseEmptyHostWithPath() throws HostParserException {\n final Host host = new HostParser(new ProtocolFactory(Collections.singleton(new TestProtocol(Scheme.https) {\n @Override\n public String getDefaultHostname() {\n return \"host\";\n ...
{ "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_424
{ "fields": [], "file": "manta/src/test/java/ch/cyberduck/core/manta/MantaListServiceTest.java", "identifier": "MantaListServiceTest", "interfaces": "", "superclass": "extends AbstractMantaTest" }
{ "body": "@Test\n public void testAccountRoot() throws Exception {\n final MantaAccountHomeInfo root = new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath());\n final AttributedList<Path> list = new MantaListService(session)\n .list(...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final MantaSession session;", "type": "MantaSession", "var_name": "session" } ], "file": "manta/src/main/java/ch/cyberduck/core/manta/MantaListService.java", "identifier": "Man...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n if(directory.isRoot()) {\n return new AttributedList<Path>(Collections.singletonList(\n new MantaAccountHomeInfo(session.getHost().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_561
{ "fields": [], "file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVSessionTest.java", "identifier": "DAVSessionTest", "interfaces": "", "superclass": "extends AbstractDAVTest" }
{ "body": "@Test(expected = ConnectionRefusedException.class)\n public void testProxyNoConnect() throws Exception {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.io\");\n final DAVSession session = new DAVSession(host, new DefaultX509TrustManager(),\n new KeychainX509K...
{ "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_131
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3BucketCreateServiceTest.java", "identifier": "S3BucketCreateServiceTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testCreateBucket() throws Exception {\n final AtomicBoolean header = new AtomicBoolean();\n final AtomicBoolean signature = new AtomicBoolean();\n session.withListener(new TranscriptListener() {\n @Override\n public void log(final Type reque...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3BucketCreateService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3BucketCreateService.class);", "type": "Logger", "var_name": "log" }, { "decl...
{ "body": "public void create(final Path bucket, final String region) throws BackgroundException {\n if(!session.getClient().getConfiguration().getBoolProperty(\"s3service.disable-dns-buckets\", false)) {\n if(!ServiceUtils.isBucketNameValidDNSName(bucket.getName())) {\n throw new Int...
{ "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_998
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/symlink/DownloadSymlinkResolverTest.java", "identifier": "DownloadSymlinkResolverTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testResolveRoot() {\n final ArrayList<TransferItem> files = new ArrayList<TransferItem>();\n files.add(new TransferItem(new Path(\"/a\", EnumSet.of(Path.Type.directory))));\n DownloadSymlinkResolver resolver = new DownloadSymlinkResolver(files);\n Path p =...
{ "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_1037
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/UploadTransferTest.java", "identifier": "UploadTransferTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testChildrenEmpty() throws Exception {\n final Path root = new Path(\"/t\", EnumSet.of(Path.Type.directory)) {\n };\n Transfer t = new UploadTransfer(new Host(new TestProtocol()), root,\n new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUI...
{ "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_1467
{ "fields": [], "file": "onedrive/src/test/java/ch/cyberduck/core/onedrive/SharepointListServiceTest.java", "identifier": "SharepointListServiceTest", "interfaces": "", "superclass": "extends AbstractSharepointTest" }
{ "body": "@Test\n public void testListDefault() throws Exception {\n new SharepointListService(session, new GraphFileIdProvider(session)).list(SharepointListService.DEFAULT_NAME, new DisabledListProgressListener());\n }", "class_method_signature": "SharepointListServiceTest.testListDefault()", "cons...
{ "fields": [ { "declarator": "DEFAULT_ID = \"DEFAULT_NAME\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_ID = \"DEFAULT_NAME\";", "type": "String", "var_name": "DEFAULT_ID" }, { "declarator": "GROUPS_ID = \"GROUPS_NAME\"...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n if(directory.isRoot()) {\n final AttributedList<Path> list = new AttributedList<>();\n list.add(DEFAULT_NAME);\n list.add(GROUPS_...
{ "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_832
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/CredentialsConfiguratorFactoryTest.java", "identifier": "CredentialsConfiguratorFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGet() {\n final Host host = new Host(new TestProtocol());\n final Credentials credentials = host.getCredentials();\n assertSame(credentials, CredentialsConfiguratorFactory.get(new TestProtocol()).configure(host));\n }", "class_method_signature": "Credent...
{ "fields": [], "file": "core/src/main/java/ch/cyberduck/core/CredentialsConfiguratorFactory.java", "identifier": "CredentialsConfiguratorFactory", "interfaces": "", "methods": [ { "class_method_signature": "CredentialsConfiguratorFactory.CredentialsConfiguratorFactory()", "constructor": true,...
{ "body": "public static CredentialsConfigurator get(final Protocol protocol) {\n return protocol.getCredentialsFinder();\n }", "class_method_signature": "CredentialsConfiguratorFactory.get(final Protocol protocol)", "constructor": false, "full_signature": "public static CredentialsConfigurator get(fi...
{ "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_218
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPSessionTest.java", "identifier": "FTPSessionTest", "interfaces": "", "superclass": "extends AbstractFTPTest" }
{ "body": "@Test\n public void testConnect() throws Exception {\n final Path path = new FTPWorkdirService(session).find();\n assertNotNull(path);\n assertEquals(path, new FTPWorkdirService(session).find());\n assertTrue(session.isConnected());\n }", "class_method_signature": "FTPSe...
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPSession.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPSession.class);", "type": "Logger", "var_name": "log" }, { "declarator": "preferences\...
{ "body": "@Override\n public FTPClient connect(final Proxy proxy, final HostKeyCallback callback, final LoginCallback prompt) throws BackgroundException {\n try {\n final CustomTrustSSLProtocolSocketFactory f\n = new CustomTrustSSLProtocolSocketFactory(trust, key, preferences.getP...
{ "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_648
{ "fields": [], "file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSExceptionMappingServiceTest.java", "identifier": "IRODSExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMap() {\n assertTrue(new IRODSExceptionMappingService().map(new CatNoAccessException(\"no access\")) instanceof AccessDeniedException);\n assertTrue(new IRODSExceptionMappingService().map(new FileNotFoundException(\"no file\")) instanceof NotfoundException);\n ...
{ "fields": [], "file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSExceptionMappingService.java", "identifier": "IRODSExceptionMappingService", "interfaces": "", "methods": [ { "class_method_signature": "IRODSExceptionMappingService.map(final JargonException e)", "constructor": false, ...
{ "body": "@Override\n public BackgroundException map(final JargonException e) {\n final StringBuilder buffer = new StringBuilder();\n this.append(buffer, e.getMessage());\n if(e instanceof CatNoAccessException) {\n return new AccessDeniedException(buffer.toString(), e);\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_16
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3UrlProviderTest.java", "identifier": "S3UrlProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHttpUri() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname()));\n final Iterator<DescriptiveUrl> http = new S3UrlProvider(session).toUrl(new Path(\"/test-us-east-1-cyberduck/key\",\n EnumSet.of(Pat...
{ "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_598
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraReadFeatureTest.java", "identifier": "SpectraReadFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() 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": "containerService\n = new S3PathContainerService()", "modifier": "private final", "original_string": "private final PathContainerService containerService\n = new S3PathContainerService();", "type": "PathContainerService", "var_name": "conta...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n // Make sure file is available in cache\n final List<TransferStatus> chunks = bulk.query(Transfer.Type.download, file, status);\n // So...
{ "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_432
{ "fields": [], "file": "manta/src/test/java/ch/cyberduck/core/manta/MantaReadFeatureTest.java", "identifier": "MantaReadFeatureTest", "interfaces": "", "superclass": "extends AbstractMantaTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n try {\n final Path drive = new MantaDirectoryFeature(session).mkdir(randomDirectory(), \"\", new TransferStatus());\n ...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final MantaSession session;", "type": "MantaSession", "var_name": "session" } ], "file": "manta/src/main/java/ch/cyberduck/core/manta/MantaReadFeature.java", "identifier": "Man...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback connectionCallback) throws BackgroundException {\n final MantaHttpHeaders headers = new MantaHttpHeaders();\n try {\n try {\n if(status.isAppend()) {\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_961
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/LocaleFactoryTest.java", "identifier": "LocaleFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFormat() {\n assertEquals(\"La clé d'hôte fournie est 1.\",\n MessageFormat.format(LocaleFactory.localizedString(\"La clé d'hôte fournie est {0}.\"), \"1\"));\n }", "class_method_signature": "LocaleFactoryTest.testFormat()", "constructor": false, "f...
{ "fields": [ { "declarator": "locale", "modifier": "private static", "original_string": "private static Locale locale;", "type": "Locale", "var_name": "locale" } ], "file": "core/src/main/java/ch/cyberduck/core/LocaleFactory.java", "identifier": "LocaleFactory", "interfa...
{ "body": "public static String localizedString(final String key) {\n return localizedString(key, \"Localizable\");\n }", "class_method_signature": "LocaleFactory.localizedString(final String key)", "constructor": false, "full_signature": "public static String localizedString(final String key)", "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...