id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
79564911_68 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipleDeleteFeatureTest.java",
"identifier": "S3MultipleDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testDeleteContainer() throws Exception {\n final Path container = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.volume, Path.Type.directory));\n new S3DirectoryFeature(session, new S3WriteFeature(session, new S3DisabledMultipartService())).mkdir(container,... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3MultipleDeleteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3MultipleDeleteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"... | {
"body": "public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n final Map<Path, List<ObjectKeyAndVersion>> map = new HashMap<Path, List<ObjectKeyAndVersion>>();\n final List<Path> containers = new ArrayList<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_159 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java",
"identifier": "S3ObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testListFilePlusCharacter() throws Exception {\n final Path container = new Path(\"test-eu-central-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path placeholder = new S3TouchFeature(session).touch(\n new Path(container, String.fo... | {
"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_509 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDirectoryFeatureTest.java",
"identifier": "SDSDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testCreateDataRoom() throws Exception {\n final RandomStringService randomStringService = new AlphanumericRandomStringService();\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(sessio... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSDirectoryFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSDirectoryFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n final CreateRoomRequest roomRequest = new CreateRoomRequest();\n roomRequ... | {
"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_87 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3LocationFeatureTest.java",
"identifier": "S3LocationFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testForbidden() throws Exception {\n final Host host = new Host(new S3Protocol(), \"dist.springframework.org.s3.amazonaws.com\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n final S3Session sessi... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3LocationFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3LocationFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator":... | {
"body": "@Override\n public Name getLocation(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n if(bucket.isRoot()) {\n return unknown;\n }\n return this.getLocation(bucket.getName());\n }",
"class_method_signatur... | {
"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_1376 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftTouchFeatureTest.java",
"identifier": "SwiftTouchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testTouch() 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 SwiftTouchFeature(session, new SwiftRegionService(sess... | {
"fields": [
{
"declarator": "containerService\n = new PathContainerService()",
"modifier": "final",
"original_string": "final PathContainerService containerService\n = new PathContainerService();",
"type": "PathContainerService",
"var_name": "containerService"
},
... | {
"body": "@Override\n public Path touch(final Path file, final TransferStatus status) throws BackgroundException {\n status.setLength(0L);\n final StatusOutputStream<StorageObject> out = writer.write(file, status, new DisabledConnectionCallback());\n new DefaultStreamCloser().close(out);\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_620 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraObjectListServiceTest.java",
"identifier": "SpectraObjectListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testList() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties().getProperty(\"spectra.hostname\"), Integer.... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SpectraObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SpectraObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, preferences.getInteger(\"s3.listing.chunksize\"));\n }",
"class_method_signature": "SpectraObjectListService.list(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_270 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPDeleteFeatureTest.java",
"identifier": "FTPDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testDeleteNotFound() throws Exception {\n final Path test = new Path(new FTPWorkdirService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n try {\n new FTPDeleteFeature(session).delete(Collections.singletonList(test), new Disabled... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final FTPSession session;",
"type": "FTPSession",
"var_name": "session"
}
],
"file": "ftp/src/main/java/ch/cyberduck/core/ftp/FTPDeleteFeature.java",
"identifier": "FTPDeleteFe... | {
"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 callback.delete(file);\n try {\n if(file.isFile() || file.isSymboli... | {
"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_765 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/WorkspaceRevealServiceTest.java",
"identifier": "WorkspaceRevealServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testReveal() {\n assertTrue(new WorkspaceRevealService().reveal(new Local(System.getProperty(\"java.io.tmpdir\"))));\n }",
"class_method_signature": "WorkspaceRevealServiceTest.testReveal()",
"constructor": false,
"full_signature": "@Test public void testReveal()",
... | {
"fields": [],
"file": "core/dylib/src/main/java/ch/cyberduck/core/local/WorkspaceRevealService.java",
"identifier": "WorkspaceRevealService",
"interfaces": "implements RevealService",
"methods": [
{
"class_method_signature": "WorkspaceRevealService.reveal(final Local file)",
"constructor": f... | {
"body": "@Override\n public boolean reveal(final Local file) {\n synchronized(NSWorkspace.class) {\n // If a second path argument is specified, a new file viewer is opened. If you specify an\n // empty string (@\"\") for this parameter, the file is selected in the main viewer.\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_335 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalReadFeatureTest.java",
"identifier": "LocalReadFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testReadRange() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n session.login(... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final LocalSession session;",
"type": "LocalSession",
"var_name": "session"
}
],
"file": "nio/src/main/java/ch/cyberduck/core/nio/LocalReadFeature.java",
"identifier": "LocalRe... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final FileChannel channel = FileChannel.open(session.toPath(file), StandardOpenOption.READ);\n channel.position(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_1233 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageDeleteFeatureTest.java",
"identifier": "GoogleStorageDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testDeleteContainer() throws Exception {\n final Path container = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.volume, Path.Type.directory));\n container.attributes().setRegion(\"US\");\n new GoogleStorageDirectoryFeature(session).mkdir(container, ... | {
"fields": [
{
"declarator": "containerService\n = new GoogleStoragePathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new GoogleStoragePathContainerService();",
"type": "PathContainerService",
... | {
"body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n try {\n for(Path file : files.keySet()) {\n callback.delete(file);\n if(containerService.isContaine... | {
"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_1399 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftWriteFeatureTest.java",
"identifier": "SwiftWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testAppendSegmentFound() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path file = new Path(container, UUID.randomUUID().toStrin... | {
"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": "containe... | {
"body": "@Override\n public Append append(final Path file, final Long length, final Cache<Path> cache) throws BackgroundException {\n if(length >= preferences.getLong(\"openstack.upload.largeobject.threshold\")) {\n if(preferences.getBoolean(\"openstack.upload.largeobject\")) {\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_909 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/SessionListWorkerTest.java",
"identifier": "SessionListWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCacheListCanceledWithController() throws Exception {\n final Host host = new Host(new TestProtocol(), \"localhost\");\n final Session<?> session = new NullSession(host) {\n @Override\n public AttributedList<Path> list(final Path directory, fina... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SessionListWorker.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SessionListWorker.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator":... | {
"body": "@Override\n public AttributedList<Path> run(final Session<?> session) throws BackgroundException {\n try {\n if(this.isCached()) {\n final AttributedList<Path> list = cache.get(directory);\n listener.chunk(directory, list);\n return 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_91 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ReadFeatureTest.java",
"identifier": "S3ReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n new S3ReadFeature... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3ReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3ReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "contai... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(file.getType().contains(Path.Type.upload)) {\n return new NullInputStream(0L);\n }\n 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_1049 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/normalizer/UploadRootPathsNormalizerTest.java",
"identifier": "UploadRootPathsNormalizerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNormalizeLargeSet() {\n UploadRootPathsNormalizer n = new UploadRootPathsNormalizer();\n final List<TransferItem> list = new ArrayList<TransferItem>();\n for(int i = 0; i < 1000; i++) {\n final String name = String.format(\"f-%d\", i);\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(UploadRootPathsNormalizer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(UploadRootPathsNormalizer.class);",
"type": "Logger",
"var_name": "log"
}
],
"fi... | {
"body": "@Override\n public List<TransferItem> normalize(final List<TransferItem> roots) {\n final List<TransferItem> normalized = new ArrayList<TransferItem>();\n for(TransferItem upload : roots) {\n boolean duplicate = false;\n for(Iterator<TransferItem> iter = normalized.it... | {
"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_1419 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftDefaultCopyFeatureTest.java",
"identifier": "SwiftDefaultCopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testCopy() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.o... | {
"fields": [
{
"declarator": "containerService\n = new PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new PathContainerService();",
"type": "PathContainerService",
"var_name": "container... | {
"body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n // Copies file\n // If segmented file, copies manifest (creating a link between new object and original 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_266 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPReadFeatureTest.java",
"identifier": "FTPReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testAbortNoRead() throws Exception {\n final TransferStatus status = new TransferStatus();\n status.setLength(5L);\n final Path workdir = new FTPWorkdirService(session).find();\n final Path file = new Path(workdir, new AlphanumericRandomStringService().ran... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FTPReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FTPReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(!session.getClient().setFileType(FTP.BINARY_FILE_TYPE)) {\n throw new FTPException(session.getClient().getReplyC... | {
"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_636 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSListServiceTest.java",
"identifier": "IRODSListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore\n public void testList() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Local(\"../profiles/iRODS (iPlan... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final IRODSSession session;",
"type": "IRODSSession",
"var_name": "session"
}
],
"file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSListService.java",
"identifier": "IRO... | {
"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 IRODSFileSystemAO fs = session.getClient();\n f... | {
"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_1360 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftSegmentServiceTest.java",
"identifier": "SwiftSegmentServiceTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testGetSegmentsDirectory() {\n final SwiftSegmentService service = new SwiftSegmentService(session, \".prefix/\");\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final String name = UUID.randomUUID()... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftSegmentService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftSegmentService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "public Path getSegmentsDirectory(final Path file, final Long size) {\n return new Path(file.getParent(), String.format(\"%s%s/%d\", prefix, file.getName(), size), EnumSet.of(Path.Type.directory));\n }",
"class_method_signature": "SwiftSegmentService.getSegmentsDirectory(final Path file, final L... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1225 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageWebsiteDistributionConfigurationTest.java",
"identifier": "GoogleStorageWebsiteDistributionConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testFeatures() {\n final DistributionConfiguration d = new GoogleStorageWebsiteDistributionConfiguration(session);\n assertNotNull(d.getFeature(Index.class, Distribution.WEBSITE));\n assertNotNull(d.getFeature(DistributionLogging.class, Distribution.WEBSITE));\n ... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final GoogleStorageSession session;",
"type": "GoogleStorageSession",
"var_name": "session"
},
{
"declarator": "containerService\n = new GoogleStoragePathContainerSe... | {
"body": "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> T getFeature(final Class<T> type, final Distribution.Method method) {\n if(type == Index.class) {\n return (T) this;\n }\n if(type == DistributionLogging.class) {\n return (T) new GoogleStorageLogging... | {
"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_323 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureDirectoryFeatureTest.java",
"identifier": "AzureDirectoryFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateContainer() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getProperties().getProperty(\"azure.key\")\n ... | {
"fields": [
{
"declarator": "containerService\n = new AzurePathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new AzurePathContainerService();",
"type": "PathContainerService",
"var_name": ... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n final BlobRequestOptions options = new BlobRequestOptions();\n if(containerService.isContainer(folder)) {\n // Container n... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_289 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPExceptionMappingServiceTest.java",
"identifier": "FTPExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSocketTimeout() {\n assertEquals(ConnectionTimeoutException.class, new FTPExceptionMappingService()\n .map(new SocketTimeoutException()).getClass());\n assertEquals(ConnectionTimeoutException.class, new FTPExceptionMappingService()\n .map(\"mes... | {
"fields": [],
"file": "ftp/src/main/java/ch/cyberduck/core/ftp/FTPExceptionMappingService.java",
"identifier": "FTPExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "FTPExceptionMappingService.map(final IOException e)",
"constructor": false,
"full_sig... | {
"body": "@Override\n public BackgroundException map(final IOException e) {\n final StringBuilder buffer = new StringBuilder();\n this.append(buffer, e.getMessage());\n if(e instanceof FTPConnectionClosedException) {\n return new ConnectionRefusedException(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_773 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/preferences/SharedFileListApplicationLoginRegistryTest.java",
"identifier": "SharedFileListApplicationLoginRegistryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRegisterNotInstalled() {\n final SharedFileListApplicationLoginRegistry registry = new SharedFileListApplicationLoginRegistry(new DisabledApplicationFinder());\n assertFalse(registry.register(new Application(\"ch.sudo.cyberduck\")));\n }",
"class_method_signatu... | {
"fields": [
{
"declarator": "service = new FinderSidebarService(SidebarService.List.login)",
"modifier": "private final",
"original_string": "private final FinderSidebarService service = new FinderSidebarService(SidebarService.List.login);",
"type": "FinderSidebarService",
"var_nam... | {
"body": "@Override\n public boolean register(final Application application) {\n try {\n if(finder.isInstalled(application)) {\n service.add(new FinderLocal(NSWorkspace.sharedWorkspace().absolutePathForAppBundleWithIdentifier(application.getIdentifier())));\n return... | {
"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_29 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3DirectoryFeatureTest.java",
"identifier": "S3DirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testCreatePlaceholder() throws Exception {\n final AtomicBoolean b = new AtomicBoolean();\n final String name = new AlphanumericRandomStringService().random();\n session.withListener(new TranscriptListener() {\n @Override\n public void log(f... | {
"fields": [
{
"declarator": "MIMETYPE = \"application/x-directory\"",
"modifier": "private static final",
"original_string": "private static final String MIMETYPE = \"application/x-directory\";",
"type": "String",
"var_name": "MIMETYPE"
},
{
"declarator": "session",
... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n if(containerService.isContainer(folder)) {\n final S3BucketCreateService service = new S3BucketCreateService(session);\n service.create(folder, 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_118 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3LifecycleConfigurationTest.java",
"identifier": "S3LifecycleConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testGetConfiguration() throws Exception {\n final LifecycleConfiguration configuration = new S3LifecycleConfiguration(session).getConfiguration(\n new Path(\"test-lifecycle-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory))\n );\n assertEquals(30,... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3LifecycleConfiguration.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3LifecycleConfiguration.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public LifecycleConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n if(container.isRoot()) {\n return LifecycleConfiguration.empty();\n }\n if(file.getType().contai... | {
"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_548 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVLockFeatureTest.java",
"identifier": "DAVLockFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test(expected = InteroperabilityException.class)\n public void testLockNotSupported() throws Exception {\n final TransferStatus status = new TransferStatus();\n final Local local = new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n final byte[] conte... | {
"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/DAVLockFeature.java",
"identifier": "DAVLockFea... | {
"body": "@Override\n public String lock(final Path file) throws BackgroundException {\n try {\n return session.getClient().lock(new DAVPathEncoder().encode(file));\n }\n catch(SardineException e) {\n throw new DAVExceptionMappingService().map(\"Failure to write attribut... | {
"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_1337 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftObjectListServiceTest.java",
"identifier": "SwiftObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testListDirectory() 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 placeholder = new SwiftDirectoryFeature(session).mkdir(ne... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"de... | {
"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 int limit = PreferencesFactory.get().getInteger(\"openstac... | {
"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_661 | {
"fields": [],
"file": "importer/src/test/java/ch/cyberduck/core/importer/FireFtpBookmarkCollectionTest.java",
"identifier": "FireFtpBookmarkCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = AccessDeniedException.class)\n public void testParseNotFound() throws Exception {\n new FireFtpBookmarkCollection().read(new ProtocolFactory(Collections.emptySet()), new Local(System.getProperty(\"java.io.tmpdir\"), \"f\"));\n }",
"class_method_signature": "FireFtpBookmarkCo... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FireFtpBookmarkCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FireFtpBookmarkCollection.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "protected void read(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {\n try (final BufferedReader in = new BufferedReader(new InputStreamReader(file.getInputStream(), StandardCharsets.UTF_8))) {\n String l;\n while((l = in.readLine()) != null) {\... | {
"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_231 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java",
"identifier": "FTPMlsdListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSkipParentDir() throws Exception {\n Path path = new Path(\n \"/www\", EnumSet.of(Path.Type.directory));\n\n String[] replies = new String[]{\n \"Type=pdir;Unique=aaaaacUYqaaa;Perm=cpmel; /\",\n \"Type=pdir;Unique=aaaaacUYqaaa;Perm=c... | {
"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_724 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/diagnostics/SystemConfigurationReachabilityTest.java",
"identifier": "SystemConfigurationReachabilityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsReachablePort22() {\n final Reachability r = new SystemConfigurationReachability();\n assertTrue(r.isReachable(\n new Host(new TestProtocol(), \"cyberduck.ch\", 22)\n ));\n }",
"class_method_signature": "SystemConfigurationReachabilityTe... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SystemConfigurationReachability.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SystemConfigurationReachability.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n public boolean isReachable(final Host bookmark) {\n final CDReachabilityMonitor monitor = CDReachabilityMonitor.monitorForUrl(this.toURL(bookmark));\n return monitor.isReachable();\n }",
"class_method_signature": "SystemConfigurationReachability.isReachable(final Host book... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_374 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveReadFeatureTest.java",
"identifier": "DriveReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testReadEmpty() throws Exception {\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache);\n final Path directory = new DriveDirectoryFeature(session, fileid).mkdir(new Path(DriveHomeFinderService.MYDRIVE_FOLDER, new AlphanumericRandomStr... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DriveReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DriveReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n if(file.getType().contains(Path.Type.placeholder)) {\n final DescriptiveUrl link = new DriveUrlProvider().toUrl(file).find(DescriptiveUrl.... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1272 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPSessionTest.java",
"identifier": "SFTPSessionTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test(expected = LoginCanceledException.class)\n public void testConnectNoValidCredentials() throws Exception {\n final Host host = new Host(new SFTPProtocol(), \"test.cyberduck.ch\", new Credentials(\"user\"));\n final Session session = new SFTPSession(host, new DisabledX509TrustManager()... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preference... | {
"body": "@Override\n public SSHClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException {\n try {\n final DefaultConfig configuration = new DefaultConfig();\n if(\"zlib\".equals(preferences.getProperty(\"ssh.compression\"))) ... | {
"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_1336 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftProtocolTest.java",
"identifier": "SwiftProtocolTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConfigurable() {\n assertTrue(new SwiftProtocol().isHostnameConfigurable());\n assertTrue(new SwiftProtocol().isPortConfigurable());\n }",
"class_method_signature": "SwiftProtocolTest.testConfigurable()",
"constructor": false,
"full_signature": "@Test publi... | {
"fields": [],
"file": "openstack/src/main/java/ch/cyberduck/core/openstack/SwiftProtocol.java",
"identifier": "SwiftProtocol",
"interfaces": "",
"methods": [
{
"class_method_signature": "SwiftProtocol.getName()",
"constructor": false,
"full_signature": "@Override public String getName(... | {
"body": "@Override\n public boolean isHostnameConfigurable() {\n return true;\n }",
"class_method_signature": "SwiftProtocol.isHostnameConfigurable()",
"constructor": false,
"full_signature": "@Override public boolean isHostnameConfigurable()",
"identifier": "isHostnameConfigurable",
"invocat... | {
"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_660 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSTouchFeatureTest.java",
"identifier": "IRODSTouchFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTouch() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Local(\"../profiles/iRODS (iPlant Collab... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final IRODSSession session;",
"type": "IRODSSession",
"var_name": "session"
}
],
"file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSTouchFeature.java",
"identifier": "IR... | {
"body": "@Override\n public Path touch(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n final IRODSFileSystemAO fs = session.getClient();\n final int descriptor = fs.createFile(file.getAbsolute(),\n DataObjInp.OpenFlags.WRITE_TRUNCAT... | {
"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_230 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java",
"identifier": "FTPMlsdListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = FTPInvalidListException.class)\n public void testMlsdPdir() throws Exception {\n Path path = new Path(\n \"/www\", EnumSet.of(Path.Type.directory));\n\n String[] replies = new String[]{\n \"Type=pdir;Perm=e;Unique=keVO1+d?3; ..\", //skipped\n }... | {
"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_725 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/diagnostics/SystemConfigurationReachabilityTest.java",
"identifier": "SystemConfigurationReachabilityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNotReachablePortSubdomain() {\n final Reachability r = new SystemConfigurationReachability();\n assertFalse(r.isReachable(\n new Host(new TestProtocol(), \"a.cyberduck.ch\", 22)\n ));\n }",
"class_method_signature": "SystemConfigurationRea... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SystemConfigurationReachability.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SystemConfigurationReachability.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n public boolean isReachable(final Host bookmark) {\n final CDReachabilityMonitor monitor = CDReachabilityMonitor.monitorForUrl(this.toURL(bookmark));\n return monitor.isReachable();\n }",
"class_method_signature": "SystemConfigurationReachability.isReachable(final Host book... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_375 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveMoveFeatureTest.java",
"identifier": "DriveMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testMoveFile() throws Exception {\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache);\n final Path test = new DriveTouchFeature(session, fileid).touch(new Path(DriveHomeFinderService.MYDRIVE_FOLDER, new AlphanumericRandomStringService... | {
"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 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_1273 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPSessionTest.java",
"identifier": "SFTPSessionTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n @Ignore\n public void testUsernameChangeReconnect() throws Exception {\n final Host host = new Host(new SFTPProtocol(), \"test.cyberduck.ch\", new Credentials(\"u1\", \"p1\"));\n final Session session = new SFTPSession(host, new DisabledX509TrustManager(), new DefaultX509KeyMana... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preference... | {
"body": "@Override\n public SSHClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException {\n try {\n final DefaultConfig configuration = new DefaultConfig();\n if(\"zlib\".equals(preferences.getProperty(\"ssh.compression\"))) ... | {
"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_28 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3FindFeatureTest.java",
"identifier": "S3FindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testFindCommonPrefix() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n assertTrue(new S3FindFeature(session).find(container));\n final String prefix = new AlphanumericRandomS... | {
"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 boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n if(file.isFile() || file.isPlaceholder()) {\n attributes.find(file);\n return true;\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_119 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3LifecycleConfigurationTest.java",
"identifier": "S3LifecycleConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testGetConfigurationAccessDenied() throws Exception {\n assertEquals(LifecycleConfiguration.empty(), new S3LifecycleConfiguration(session).getConfiguration(\n new Path(\"bucket\", EnumSet.of(Path.Type.directory))\n ));\n }",
"class_method_signature": "S3... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3LifecycleConfiguration.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3LifecycleConfiguration.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public LifecycleConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n if(container.isRoot()) {\n return LifecycleConfiguration.empty();\n }\n if(file.getType().contai... | {
"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_549 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVMetadataFeatureTest.java",
"identifier": "DAVMetadataFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testGetMetadataFolder() throws Exception {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.ch\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n final DAVSession session = new DAV... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVMetadataFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVMetadataFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public Map<String, String> getMetadata(final Path file) throws BackgroundException {\n try {\n final List<DavResource> resources = session.getClient().list(new DAVPathEncoder().encode(file), 0);\n for(DavResource resource : resources) {\n return re... | {
"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_267 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPReadFeatureTest.java",
"identifier": "FTPReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testAbortPartialRead() throws Exception {\n final Path test = new Path(new FTPWorkdirService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new FTPTouchFeature(session).touch(test, new TransferStatus());\n final OutputStream out = n... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FTPReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FTPReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(!session.getClient().setFileType(FTP.BINARY_FILE_TYPE)) {\n throw new FTPException(session.getClient().getReplyC... | {
"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_637 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSListServiceTest.java",
"identifier": "IRODSListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testListNotfound() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new L... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final IRODSSession session;",
"type": "IRODSSession",
"var_name": "session"
}
],
"file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSListService.java",
"identifier": "IRO... | {
"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 IRODSFileSystemAO fs = session.getClient();\n f... | {
"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_1361 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftSegmentServiceTest.java",
"identifier": "SwiftSegmentServiceTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testGetSegmentName() {\n final SwiftSegmentService service = new SwiftSegmentService(session, \".prefix/\");\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path directory = new Path(container, ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftSegmentService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftSegmentService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "public Path getSegment(final Path file, final Long size, int segmentNumber) {\n return new Path(this.getSegmentsDirectory(file, size), String.format(\"%08d\", segmentNumber), EnumSet.of(Path.Type.file));\n }",
"class_method_signature": "SwiftSegmentService.getSegment(final Path file, final Long... | {
"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_1224 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageWebsiteDistributionConfigurationTest.java",
"identifier": "GoogleStorageWebsiteDistributionConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testWrite() throws Exception {\n final DistributionConfiguration configuration\n = new GoogleStorageWebsiteDistributionConfiguration(session);\n final Path bucket = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory, Path.Type.volume));... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final GoogleStorageSession session;",
"type": "GoogleStorageSession",
"var_name": "session"
},
{
"declarator": "containerService\n = new GoogleStoragePathContainerSe... | {
"body": "@Override\n public void write(final Path file, final Distribution distribution, final LoginCallback prompt) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n try {\n String suffix = \"index.html\";\n if(StringUtils.isNotBlank... | {
"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_322 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureObjectListServiceTest.java",
"identifier": "AzureObjectListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testListLexicographicSortOrderAssumption() 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(\"azu... | {
"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 AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final CloudBlobContainer container = session.getClient().getContainerReference(containerService.getContainer(directory).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_288 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPExceptionMappingServiceTest.java",
"identifier": "FTPExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTrim() {\n assertEquals(\"M. Please contact your web hosting service provider for assistance.\", new FTPExceptionMappingService().map(new FTPException(500, \"m\\n\")).getDetail());\n }",
"class_method_signature": "FTPExceptionMappingServiceTest.testTrim()",
"constru... | {
"fields": [],
"file": "ftp/src/main/java/ch/cyberduck/core/ftp/FTPExceptionMappingService.java",
"identifier": "FTPExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "FTPExceptionMappingService.map(final IOException e)",
"constructor": false,
"full_sig... | {
"body": "@Override\n public BackgroundException map(final IOException e) {\n final StringBuilder buffer = new StringBuilder();\n this.append(buffer, e.getMessage());\n if(e instanceof FTPConnectionClosedException) {\n return new ConnectionRefusedException(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_772 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/preferences/SharedFileListApplicationLoginRegistryTest.java",
"identifier": "SharedFileListApplicationLoginRegistryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore\n public void testRegister() {\n final SharedFileListApplicationLoginRegistry registry = new SharedFileListApplicationLoginRegistry(new LaunchServicesApplicationFinder());\n final Application application = new Application(\"ch.sudo.cyberduck\");\n assertTrue(regis... | {
"fields": [
{
"declarator": "service = new FinderSidebarService(SidebarService.List.login)",
"modifier": "private final",
"original_string": "private final FinderSidebarService service = new FinderSidebarService(SidebarService.List.login);",
"type": "FinderSidebarService",
"var_nam... | {
"body": "@Override\n public boolean register(final Application application) {\n try {\n if(finder.isInstalled(application)) {\n service.add(new FinderLocal(NSWorkspace.sharedWorkspace().absolutePathForAppBundleWithIdentifier(application.getIdentifier())));\n return... | {
"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_908 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/SessionListWorkerTest.java",
"identifier": "SessionListWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCacheNotFoundWithController() throws Exception {\n final Host host = new Host(new TestProtocol(), \"localhost\");\n final Session<?> session = new NullTransferSession(host);\n final PathCache cache = new PathCache(1);\n final SessionListWorker worker =... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SessionListWorker.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SessionListWorker.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator":... | {
"body": "@Override\n public AttributedList<Path> run(final Session<?> session) throws BackgroundException {\n try {\n if(this.isCached()) {\n final AttributedList<Path> list = cache.get(directory);\n listener.chunk(directory, list);\n return 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_90 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3LocationFeatureTest.java",
"identifier": "S3LocationFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testEmptyThirdPartyProvider() {\n final Host host = new Host(new S3Protocol(), \"mys3\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n final S3Session session = new S3Session(host);\n asser... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3LocationFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3LocationFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator":... | {
"body": "@Override\n public Set<Name> getLocations() {\n if(StringUtils.isNotBlank(session.getHost().getRegion())) {\n return Collections.singleton(new S3Region(session.getHost().getRegion()));\n }\n // Only for AWS\n if(S3Session.isAwsHostname(session.getHost().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_1048 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/normalizer/UploadRootPathsNormalizerTest.java",
"identifier": "UploadRootPathsNormalizerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNormalize() {\n UploadRootPathsNormalizer n = new UploadRootPathsNormalizer();\n final List<TransferItem> list = new ArrayList<TransferItem>();\n list.add(new TransferItem(new Path(\"/a\", EnumSet.of(Path.Type.directory)), new NullLocal(System.getProperty(\"j... | {
"fields": [
{
"declarator": "log = Logger.getLogger(UploadRootPathsNormalizer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(UploadRootPathsNormalizer.class);",
"type": "Logger",
"var_name": "log"
}
],
"fi... | {
"body": "@Override\n public List<TransferItem> normalize(final List<TransferItem> roots) {\n final List<TransferItem> normalized = new ArrayList<TransferItem>();\n for(TransferItem upload : roots) {\n boolean duplicate = false;\n for(Iterator<TransferItem> iter = normalized.it... | {
"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_1418 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftSmallObjectUploadFeatureTest.java",
"identifier": "SwiftSmallObjectUploadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testPostChecksum() throws Exception {\n final StorageObject o = new StorageObject(\"f\");\n o.setMd5sum(\"d41d8cd98f00b204e9800998ecf8427e\");\n new SwiftSmallObjectUploadFeature(new SwiftWriteFeature(\n session, new SwiftRegionService(session))).post(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftSmallObjectUploadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftSmallObjectUploadFeature.class);",
"type": "Logger",
"var_name": "log"
}
... | {
"body": "@Override\n protected void post(final Path file, final MessageDigest digest, final StorageObject response) throws BackgroundException {\n this.verify(file, digest, Checksum.parse(response.getMd5sum()));\n }",
"class_method_signature": "SwiftSmallObjectUploadFeature.post(final Path file, fina... | {
"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_1377 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftLargeObjectUploadFeatureTest.java",
"identifier": "SwiftLargeObjectUploadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testAppendNoPartCompleted() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path test = new Path(container, UUID.randomUUID().toSt... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftLargeObjectUploadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftLargeObjectUploadFeature.class);",
"type": "Logger",
"var_name": "log"
},
... | {
"body": "@Override\n public StorageObject upload(final Path file, final Local local,\n final BandwidthThrottle throttle,\n final StreamListener listener,\n final TransferStatus status,\n 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_621 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraObjectListServiceTest.java",
"identifier": "SpectraObjectListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void tetsEmptyPlaceholder() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperti... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SpectraObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SpectraObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, preferences.getInteger(\"s3.listing.chunksize\"));\n }",
"class_method_signature": "SpectraObjectListService.list(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_271 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPDeleteFeatureTest.java",
"identifier": "FTPDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testDeleteDirectory() throws Exception {\n final Path test = new Path(new FTPWorkdirService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory));\n new FTPDirectoryFeature(session).mkdir(test, null, new TransferStatus());\n new FTPDelet... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final FTPSession session;",
"type": "FTPSession",
"var_name": "session"
}
],
"file": "ftp/src/main/java/ch/cyberduck/core/ftp/FTPDeleteFeature.java",
"identifier": "FTPDeleteFe... | {
"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 callback.delete(file);\n try {\n if(file.isFile() || file.isSymboli... | {
"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_764 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesQuarantineServiceTest.java",
"identifier": "LaunchServicesQuarantineServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSetWhereFrom() throws Exception {\n final QuarantineService q = new LaunchServicesQuarantineService();\n Callable<Local> c = new Callable<Local>() {\n @Override\n public Local call() throws Exception {\n final NullLocal l = new N... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LaunchServicesQuarantineService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LaunchServicesQuarantineService.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n public void setWhereFrom(final Local file, final String dataUrl) throws LocalAccessDeniedException {\n synchronized(lock) {\n if(StringUtils.isBlank(dataUrl)) {\n log.warn(\"No data url given\");\n return;\n }\n if(!this.s... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_334 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalReadFeatureTest.java",
"identifier": "LocalReadFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRead() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n session.login(Proxy... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final LocalSession session;",
"type": "LocalSession",
"var_name": "session"
}
],
"file": "nio/src/main/java/ch/cyberduck/core/nio/LocalReadFeature.java",
"identifier": "LocalRe... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final FileChannel channel = FileChannel.open(session.toPath(file), StandardOpenOption.READ);\n channel.position(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_1232 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageReadFeatureTest.java",
"identifier": "GoogleStorageReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testReadEmpty() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path directory = new GoogleStorageDirectoryFeature(session).mkdir(new Path(container, new AlphanumericRandomStringServ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GoogleStorageReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GoogleStorageReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(0L == status.getLength()) {\n return new NullInputStream(0L);\n }\n final StringBuilder ur... | {
"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_1398 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftWriteFeatureTest.java",
"identifier": "SwiftWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testAppendNoSegmentFound() 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 AtomicBoolean list = new AtomicBoolean();\n fina... | {
"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": "containe... | {
"body": "@Override\n public Append append(final Path file, final Long length, final Cache<Path> cache) throws BackgroundException {\n if(length >= preferences.getLong(\"openstack.upload.largeobject.threshold\")) {\n if(preferences.getBoolean(\"openstack.upload.largeobject\")) {\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_69 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipleDeleteFeatureTest.java",
"identifier": "S3MultipleDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testDeleteNotFoundKey() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final List<ObjectKeyAndVersion> keys = new ArrayList<ObjectKeyAndVersion>();\n for(int i = 0; i < 1010... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3MultipleDeleteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3MultipleDeleteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"... | {
"body": "public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n final Map<Path, List<ObjectKeyAndVersion>> map = new HashMap<Path, List<ObjectKeyAndVersion>>();\n final List<Path> containers = new ArrayList<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_158 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java",
"identifier": "S3ObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testLaxHostnameVerification() throws Exception {\n final Host host = new Host(new S3Protocol(), new S3Protocol().getDefaultHostname(), new Credentials(\n System.getProperties().getProperty(\"s3.key\"), System.getProperties().getProperty(\"s3.secret\")\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_508 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDirectoryFeatureTest.java",
"identifier": "SDSDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testCreateDirectory() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session, nodeid).mkdir(\n new Path(new AlphanumericRandomStringService().random(), EnumSet... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSDirectoryFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSDirectoryFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n final CreateRoomRequest roomRequest = new CreateRoomRequest();\n roomRequ... | {
"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_86 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3LocationFeatureTest.java",
"identifier": "S3LocationFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testGetLocation() throws Exception {\n final S3LocationFeature feature = new S3LocationFeature(session);\n assertEquals(new S3LocationFeature.S3Region(\"eu-west-1\"), feature.getLocation(\n new Path(\"test-eu-west-1-cyberduck\", EnumSet.of(Path.Type.volume, P... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3LocationFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3LocationFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator":... | {
"body": "@Override\n public Name getLocation(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n if(bucket.isRoot()) {\n return unknown;\n }\n return this.getLocation(bucket.getName());\n }",
"class_method_signatur... | {
"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_226 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java",
"identifier": "FTPMlsdListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMlsd() throws Exception {\n Path path = new Path(\n \"/www\", EnumSet.of(Path.Type.directory));\n\n String[] replies = new String[]{\n \"Type=file;Perm=awr;Unique=keVO1+8G4; writable\",\n \"Type=file;Perm=r;Unique=keVO1+IH4; leading... | {
"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_676 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java",
"identifier": "NSImageIconCacheTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFolderIcon16() {\n final NSImage icon = new NSImageIconCache().folderIcon(16);\n assertNotNull(icon);\n assertTrue(icon.isValid());\n assertFalse(icon.isTemplate());\n assertEquals(16, icon.size().width.intValue());\n assertEquals(16, ico... | {
"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 folderIcon(final Integer size) {\n NSImage folder = this.iconNamed(\"NSFolder\", size);\n if(null == folder) {\n return this.iconNamed(\"NSFolder\", size);\n }\n return folder;\n }",
"class_method_signature": "NSImageIconCache.folder... | {
"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_1320 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPTouchFeatureTest.java",
"identifier": "SFTPTouchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n public void testTouch() throws Exception {\n final Path home = new SFTPHomeDirectoryService(session).find();\n final Path test = new Path(home, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n new SFTPTouchFeature(session).touch(test, new Transf... | {
"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/SFTPTouchFeature.java",
"identifier": "SFTPTouc... | {
"body": "@Override\n public Path touch(final Path file, final TransferStatus status) throws BackgroundException {\n if(file.isFile()) {\n try {\n final FileAttributes attrs;\n if(Permission.EMPTY != status.getPermission()) {\n attrs = new FileAtt... | {
"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_1265 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2DirectoryFeatureTest.java",
"identifier": "B2DirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test(expected = InteroperabilityException.class)\n public void testBucketExists() throws Exception {\n final Path bucket = new Path(\"/test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n try {\n new B2DirectoryFeature(session, new B2FileidProvider(session).w... | {
"fields": [
{
"declarator": "containerService\n = new B2PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new B2PathContainerService();",
"type": "PathContainerService",
"var_name": "conta... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n final B2BucketResponse response = session.getClient().createBucket(containerService.getC... | {
"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_699 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/proxy/SystemConfigurationProxyTest.java",
"identifier": "SystemConfigurationProxyTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testExcludedLocalHost() {\n final SystemConfigurationProxy proxy = new SystemConfigurationProxy();\n assertEquals(Proxy.Type.DIRECT, proxy.find(new Host(new TestProtocol(), \"cyberduck.local\")).getType());\n }",
"class_method_signature": "SystemConfigurationProxyT... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SystemConfigurationProxy.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SystemConfigurationProxy.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Proxy find(final Host target) {\n if(!preferences.getBoolean(\"connection.proxy.enable\")) {\n return Proxy.DIRECT;\n }\n final String route = this.findNative(provider.get(target));\n if(null == route) {\n if(log.isInfoEnabled()) {\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_363 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveProtocolTest.java",
"identifier": "DriveProtocolTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPassword() {\n assertFalse(new DriveProtocol().isPasswordConfigurable());\n }",
"class_method_signature": "DriveProtocolTest.testPassword()",
"constructor": false,
"full_signature": "@Test public void testPassword()",
"identifier": "testPassword",
"invocations... | {
"fields": [],
"file": "googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveProtocol.java",
"identifier": "DriveProtocol",
"interfaces": "",
"methods": [
{
"class_method_signature": "DriveProtocol.getIdentifier()",
"constructor": false,
"full_signature": "@Override public Strin... | {
"body": "@Override\n public boolean isPasswordConfigurable() {\n // Only provide account email\n return false;\n }",
"class_method_signature": "DriveProtocol.isPasswordConfigurable()",
"constructor": false,
"full_signature": "@Override public boolean isPasswordConfigurable()",
"identifie... | {
"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_733 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesApplicationFinderTest.java",
"identifier": "LaunchServicesApplicationFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindAll() {\n ApplicationFinder f = new LaunchServicesApplicationFinder();\n final List<Application> applications = f.findAll(\"file.txt\");\n assertFalse(applications.isEmpty());\n assertTrue(applications.contains(new Application(\"com.apple.TextEdit\... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LaunchServicesApplicationFinder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LaunchServicesApplicationFinder.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n public List<Application> findAll(final String filename) {\n final String extension = Path.getExtension(filename);\n if(StringUtils.isEmpty(extension)) {\n return Collections.emptyList();\n }\n if(!defaultApplicationListCache.contains(extension)) {\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_949 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/idna/PunycodeConverterTest.java",
"identifier": "PunycodeConverterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConvertWhitespace() {\n assertEquals(\"host.localdomain\", new PunycodeConverter().convert(\"host.localdomain \"));\n }",
"class_method_signature": "PunycodeConverterTest.testConvertWhitespace()",
"constructor": false,
"full_signature": "@Test public void testConv... | {
"fields": [
{
"declarator": "log = Logger.getLogger(PunycodeConverter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(PunycodeConverter.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "core/src/m... | {
"body": "public String convert(final String hostname) {\n if(!PreferencesFactory.get().getBoolean(\"connection.hostname.idn\")) {\n return StringUtils.strip(hostname);\n }\n if(StringUtils.isNotEmpty(hostname)) {\n try {\n // Convenience function that implem... | {
"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_1009 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/upload/RenameExistingFilterTest.java",
"identifier": "RenameExistingFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTemporaryDirectoryUpload() throws Exception {\n final Path file = new Path(\"/t\", EnumSet.of(Path.Type.directory));\n final AtomicBoolean found = new AtomicBoolean();\n final AtomicBoolean moved = new AtomicBoolean();\n final Find find = new Find() {\... | {
"fields": [
{
"declarator": "log = Logger.getLogger(RenameExistingFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(RenameExistingFilter.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public void apply(final Path file, final Local local, final TransferStatus status,\n final ProgressListener listener) throws BackgroundException {\n // Rename existing file before putting new file in place\n if(status.isExists()) {\n Path rename;... | {
"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_1459 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/TerminalHelpPrinterTest.java",
"identifier": "TerminalHelpPrinterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPrintWidth100() {\n TerminalHelpPrinter.print(TerminalOptionsBuilder.options(), new TerminalHelpFormatter(100));\n }",
"class_method_signature": "TerminalHelpPrinterTest.testPrintWidth100()",
"constructor": false,
"full_signature": "@Test public void testPrintWidt... | {
"fields": [],
"file": "cli/src/main/java/ch/cyberduck/cli/TerminalHelpPrinter.java",
"identifier": "TerminalHelpPrinter",
"interfaces": "",
"methods": [
{
"class_method_signature": "TerminalHelpPrinter.TerminalHelpPrinter()",
"constructor": true,
"full_signature": "private TerminalHel... | {
"body": "public static void print(final Options options) {\n print(options, new TerminalHelpFormatter());\n }",
"class_method_signature": "TerminalHelpPrinter.print(final Options options)",
"constructor": false,
"full_signature": "public static void print(final Options options)",
"identifier": "pr... | {
"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_318 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureObjectListServiceTest.java",
"identifier": "AzureObjectListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testListNotFoundFolder() 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()... | {
"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 AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final CloudBlobContainer container = session.getClient().getContainerReference(containerService.getContainer(directory).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_748 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java",
"identifier": "FinderLocalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testWriteUnixPermission() throws Exception {\n Local l = new FinderLocal(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n new DefaultLocalTouchFeature().touch(l);\n final Permission permission = new Permission(644);\n l.attributes()... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FinderLocal.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FinderLocal.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "resolver",... | {
"body": "@Override\n public FinderLocalAttributes attributes() {\n return new FinderLocalAttributes(this);\n }",
"class_method_signature": "FinderLocal.attributes()",
"constructor": false,
"full_signature": "@Override public FinderLocalAttributes attributes()",
"identifier": "attributes",
"in... | {
"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_524 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVAttributesFinderFeatureTest.java",
"identifier": "DAVAttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testCustomModified_NotModified() throws Exception {\n final DAVAttributesFinderFeature f = new DAVAttributesFinderFeature(null);\n final DavResource mock = mock(DavResource.class);\n\n Map<QName, String> map = new HashMap<>();\n final String ts = \"Mon, 29... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVAttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVAttributesFinderFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "protected PathAttributes toAttributes(final DavResource resource) {\n final PathAttributes attributes = new PathAttributes();\n final Map<QName, String> properties = resource.getCustomPropsNS();\n if(null != properties && properties.containsKey(DAVTimestampFeature.LAST_MODIFIED_CUSTOM_... | {
"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_174 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java",
"identifier": "S3SessionTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = LoginFailureException.class)\n public void testConnectCn_North_1() throws Exception {\n final Host host = new Host(new S3Protocol(), \"s3.cn-north-1.amazonaws.com.cn\", new Credentials(\"AWS-QWEZUKJHGVCVBJHG\", \"uztfjkjnbvcf\"));\n final S3Session session = new S3Session(... | {
"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 void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n if(Scheme.isURL(host.getProtocol().getContext())) {\n try {\n final Credentials temporary = new AWSSessionCredentialsRetriever(trust, ... | {
"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_1072 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/download/CompareFilterTest.java",
"identifier": "CompareFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAcceptDirectory() throws Exception {\n final CompareFilter filter = new CompareFilter(new DisabledDownloadSymlinkResolver(),\n new NullSession(new Host(new TestProtocol())), new DownloadFilterOptions(), new ComparisonServiceFilter(\n new NullS... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CompareFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CompareFilter.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "compar... | {
"body": "@Override\n public boolean accept(final Path file, final Local local, final TransferStatus parent) throws BackgroundException {\n if(super.accept(file, local, parent)) {\n final Comparison comparison = comparisonService.compare(file, local);\n switch(comparison) {\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_1422 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftDirectoryFeatureTest.java",
"identifier": "SwiftDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testCreateContainer() throws Exception {\n final SwiftDirectoryFeature feature = new SwiftDirectoryFeature(session, new SwiftRegionService(session), new SwiftWriteFeature(session, new SwiftRegionService(session)));\n final Path container = feature.mkdir(new Path(new Alp... | {
"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 mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n // Create container at top level\n session.getClient().createContainer(re... | {
"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_877 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/shared/DefaultFindFeatureTest.java",
"identifier": "DefaultFindFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCaseInsensitive() throws Exception {\n assertTrue(new DefaultFindFeature(new NullSession(new Host(new TestProtocol())) {\n @Override\n public Protocol.Case getCaseSensitivity() {\n return Protocol.Case.insensitive;\n }\n\n ... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/shared/DefaultFindFeature.java",
"identifier": "DefaultFindFeature",
"interfaces": "implements Find",
"methods": [
{
"class_method_signature": "DefaultFindFeature.DefaultFindFeature(final Session<?> session)",
"constructor": true,
... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n final Path found = this.search(file);\n return found != null;\n }\n catch(NotfoundException 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_898 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/ArchiveTest.java",
"identifier": "ArchiveTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEscape() {\n Archive a = Archive.TAR;\n assertEquals(\"file\\\\ name\", a.escape(\"file name\"));\n assertEquals(\"file\\\\(name\", a.escape(\"file(name\"));\n assertEquals(\"\\\\$filename\", a.escape(\"$filename\"));\n }",
"class_method_signature... | {
"fields": [
{
"declarator": "log = Logger.getLogger(Archive.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(Archive.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences\n ... | {
"body": "protected String escape(final String path) {\n final StringBuilder escaped = new StringBuilder();\n for(char c : path.toCharArray()) {\n if(StringUtils.isAlphanumeric(String.valueOf(c))\n || c == Path.DELIMITER) {\n escaped.append(c);\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_1137 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathContainerServiceTest.java",
"identifier": "PathContainerServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsContainer() {\n final PathContainerService s = new PathContainerService();\n assertFalse(s.isContainer(new Path(\"/\", EnumSet.of(Path.Type.directory, Path.Type.volume))));\n assertTrue(s.isContainer(new Path(\"/t\", EnumSet.of(Path.Type.directory, Path.Typ... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/PathContainerService.java",
"identifier": "PathContainerService",
"interfaces": "",
"methods": [
{
"class_method_signature": "PathContainerService.getRoot(final Path file)",
"constructor": false,
"full_signature": "public Path... | {
"body": "public boolean isContainer(final Path file) {\n if(file.isRoot()) {\n return false;\n }\n return file.getParent().isRoot();\n }",
"class_method_signature": "PathContainerService.isContainer(final Path file)",
"constructor": false,
"full_signature": "public boolean 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_932 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/logging/LoggingConfigurationTest.java",
"identifier": "LoggingConfigurationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEquals() {\n assertEquals(LoggingConfiguration.empty(), new LoggingConfiguration());\n assertEquals(new LoggingConfiguration(true), new LoggingConfiguration(true));\n assertEquals(new LoggingConfiguration(false), new LoggingConfiguration(false));\n ass... | {
"fields": [
{
"declarator": "enabled",
"modifier": "private final",
"original_string": "private final boolean enabled;",
"type": "boolean",
"var_name": "enabled"
},
{
"declarator": "loggingTarget",
"modifier": "private final",
"original_string": "private f... | {
"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 LoggingConfiguration that = (LoggingConfiguration) o;\n\n if(enabled != tha... | {
"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_461 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSSharesUrlProviderTest.java",
"identifier": "SDSSharesUrlProviderTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test(expected = LoginCanceledException.class)\n public void testEncryptedMissingPassword() throws Exception {\n final Path room = new Path(\"test\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session)... | {
"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_45 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ExceptionMappingServiceTest.java",
"identifier": "S3ExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLoginFailure() {\n final ServiceException f = new ServiceException(\"m\", \"<null/>\");\n f.setResponseCode(401);\n f.setErrorMessage(\"m\");\n assertTrue(new S3ExceptionMappingService().map(f) instanceof LoginFailureException);\n }",
"class_metho... | {
"fields": [],
"file": "s3/src/main/java/ch/cyberduck/core/s3/S3ExceptionMappingService.java",
"identifier": "S3ExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "S3ExceptionMappingService.map(final ServiceException e)",
"constructor": false,
"full_sig... | {
"body": "@Override\n public BackgroundException map(final ServiceException e) {\n if(e.getCause() instanceof ServiceException) {\n return this.map((ServiceException) e.getCause());\n }\n final StringBuilder buffer = new StringBuilder();\n if(StringUtils.isNotBlank(e.getErro... | {
"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_1249 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2CopyFeatureTest.java",
"identifier": "B2CopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testCopyDifferentBucket() throws Exception {\n final B2FileidProvider fileid = new B2FileidProvider(session).withCache(cache);\n final Path container = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path target = new B2Di... | {
"fields": [
{
"declarator": "containerService\n = new B2PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new B2PathContainerService();",
"type": "PathContainerService",
"var_name": "conta... | {
"body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final B2FileResponse response = session.getClient().copyFile(fileid.getFileid(source, new DisabledListProgressListen... | {
"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_1475 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxLockFeatureTest.java",
"identifier": "DropboxLockFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test(expected = InteroperabilityException.class)\n public void testLockNoSuchFile() throws Exception {\n final Path file = new Path(new Path(new DropboxHomeFinderFeature(session).find(), \"Projects\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.shared)).withAttributes(new PathAtt... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DropboxSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DropboxSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public String lock(final Path file) throws BackgroundException {\n if(!containerService.getContainer(file).getType().contains(Path.Type.shared)) {\n log.warn(String.format(\"Skip attempting to lock file %s not in shared folder\", file));\n throw new UnsupportedEx... | {
"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_820 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/cdn/DistributionTest.java",
"identifier": "DistributionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeployed() {\n assertTrue(new Distribution(Distribution.DOWNLOAD, true).isDeployed());\n }",
"class_method_signature": "DistributionTest.testDeployed()",
"constructor": false,
"full_signature": "@Test public void testDeployed()",
"identifier": "testDeployed",
... | {
"fields": [
{
"declarator": "id",
"modifier": "private",
"original_string": "private String id;",
"type": "String",
"var_name": "id"
},
{
"declarator": "etag",
"modifier": "private",
"original_string": "private String etag;",
"type": "String",
... | {
"body": "public boolean isDeployed() {\n return deployed;\n }",
"class_method_signature": "Distribution.isDeployed()",
"constructor": false,
"full_signature": "public boolean isDeployed()",
"identifier": "isDeployed",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": ... | {
"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_1025 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/DownloadTransferTest.java",
"identifier": "DownloadTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testActionFileExistsTrue() throws Exception {\n final Path root = new Path(\"t\", EnumSet.of(Path.Type.file));\n Transfer t = new DownloadTransfer(new Host(new TestProtocol()), root, new NullLocal(\"p\", \"t\") {\n @Override\n public boolean exists... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DownloadTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DownloadTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public TransferAction action(final Session<?> source, final Session<?> destination, final boolean resumeRequested, final boolean reloadRequested,\n final TransferPrompt prompt, final ListProgressListener listener) throws BackgroundException {\n if(log.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_123 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3VersioningFeatureTest.java",
"identifier": "S3VersioningFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testForbidden() throws Exception {\n session.getHost().getCredentials().setPassword(StringUtils.EMPTY);\n assertEquals(VersioningConfiguration.empty(),\n new S3VersioningFeature(session, new S3AccessControlListFeature(session)).getConfiguration(new Path(\"/di... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3VersioningFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3VersioningFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public VersioningConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n if(container.isRoot()) {\n return VersioningConfiguration.empty();\n }\n if(cache.contains(cont... | {
"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_573 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVReadFeatureTest.java",
"identifier": "DAVReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testReadCloseReleaseEntity() throws Exception {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.ch\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n final DAVSession session = ne... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final List<Header> headers = new ArrayList<Header>(this.headers());\n if(status.isAppend()) {\n final HttpRange range = HttpRange.w... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_12 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3TouchFeatureTest.java",
"identifier": "S3TouchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testSuccessWithServerSideEncryptionBucketPolicy() 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(), ... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final S3Session session;",
"type": "S3Session",
"var_name": "session"
},
{
"declarator": "writer",
"modifier": "private",
"original_string": "private Write<Stor... | {
"body": "@Override\n public Path touch(final Path file, final TransferStatus status) throws BackgroundException {\n status.setChecksum(writer.checksum(file, status).compute(new NullInputStream(0L), status));\n status.setLength(0L);\n final StatusOutputStream<StorageObject> out = writer.write... | {
"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_436 | {
"fields": [],
"file": "manta/src/test/java/ch/cyberduck/core/manta/MantaTouchFeatureTest.java",
"identifier": "MantaTouchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractMantaTest"
} | {
"body": "@Test\n public void testWhitespaceTouch() throws Exception {\n final RandomStringService randomStringService = new AlphanumericRandomStringService();\n final Path file = new Path(\n testPathPrefix,\n String.format(\"%s %s\", randomStringService.random(), randomStringS... | {
"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/MantaTouchFeature.java",
"identifier": "Ma... | {
"body": "@Override\n public Path touch(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n if(!session.getClient().existsAndIsAccessible(file.getParent().getAbsolute())) {\n session.getClient().putDirectory(file.getParent().getAbsolute());\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_965 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathTest.java",
"identifier": "PathTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPopulateRegion() {\n {\n Path container = new Path(\"test\", EnumSet.of(Path.Type.directory));\n container.attributes().setRegion(\"DFW\");\n Path path = new Path(container, \"f\", EnumSet.of(Path.Type.file));\n assertEquals(\"DF... | {
"fields": [
{
"declarator": "DELIMITER = '/'",
"modifier": "public static final",
"original_string": "public static final char DELIMITER = '/';",
"type": "char",
"var_name": "DELIMITER"
},
{
"declarator": "parent",
"modifier": "protected",
"original_string... | {
"body": "public PathAttributes attributes() {\n return attributes;\n }",
"class_method_signature": "Path.attributes()",
"constructor": false,
"full_signature": "public PathAttributes attributes()",
"identifier": "attributes",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"r... | {
"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_1160 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/threading/DefaultFailureDiagnosticsTest.java",
"identifier": "DefaultFailureDiagnosticsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDetermine() {\n assertEquals(FailureDiagnostics.Type.network, new DefaultFailureDiagnostics().determine(new ResolveFailedException(\"d\", null)));\n assertEquals(FailureDiagnostics.Type.cancel, new DefaultFailureDiagnostics().determine(new ResolveCanceledException()... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DefaultFailureDiagnostics.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DefaultFailureDiagnostics.class);",
"type": "Logger",
"var_name": "log"
}
],
"fi... | {
"body": "@Override\n public Type determine(final BackgroundException failure) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Determine cause for failure %s\", failure));\n }\n for(Throwable cause : ExceptionUtils.getThrowableList(failure)) {\n if(failure ins... | {
"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_359 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalHomeFinderFeatureTest.java",
"identifier": "LocalHomeFinderFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFind() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n session.login(Proxy... | {
"fields": [],
"file": "nio/src/main/java/ch/cyberduck/core/nio/LocalHomeFinderFeature.java",
"identifier": "LocalHomeFinderFeature",
"interfaces": "",
"methods": [
{
"class_method_signature": "LocalHomeFinderFeature.LocalHomeFinderFeature(final LocalSession session)",
"constructor": true,
... | {
"body": "@Override\n public Path find() throws BackgroundException {\n final Path directory = super.find();\n if(directory == DEFAULT_HOME) {\n final String home = LocalFactory.get().getAbsolute();\n return this.toPath(home);\n }\n return directory;\n }",
"c... | {
"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_709 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/quicklook/QuartzQuickLookTest.java",
"identifier": "QuartzQuickLookTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSelect() {\n QuickLook q = new QuartzQuickLook();\n final List<Local> files = new ArrayList<Local>();\n files.add(new NullLocal(\"f\"));\n files.add(new NullLocal(\"b\"));\n q.select(files);\n }",
"class_method_signature": "QuartzQuickLookT... | {
"fields": [
{
"declarator": "log = Logger.getLogger(QuartzQuickLook.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(QuartzQuickLook.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "pr... | {
"body": "@Override\n public void select(final List<Local> files) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Select files for %s\", files));\n }\n previews.clear();\n for(final Local selected : files) {\n previews.add(new QLPreviewItem() {\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_565 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVPathEncoderTest.java",
"identifier": "DAVPathEncoderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEncode() {\n assertEquals(\"/\", new DAVPathEncoder().encode(new Path(\"/\", EnumSet.of(Path.Type.directory))));\n assertEquals(\"/dav/\", new DAVPathEncoder().encode(new Path(\"/dav\", EnumSet.of(Path.Type.directory))));\n assertEquals(\"/dav\", new DAVPathE... | {
"fields": [],
"file": "webdav/src/main/java/ch/cyberduck/core/dav/DAVPathEncoder.java",
"identifier": "DAVPathEncoder",
"interfaces": "",
"methods": [
{
"class_method_signature": "DAVPathEncoder.encode(final Path file)",
"constructor": false,
"full_signature": "public String encode(fin... | {
"body": "public String encode(final Path file) {\n final String encoded = URIEncoder.encode(file.getAbsolute());\n if(file.isDirectory()) {\n if(file.isRoot()) {\n return encoded;\n }\n return String.format(\"%s/\", encoded);\n }\n return 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_135 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3AttributesFinderFeatureTest.java",
"identifier": "S3AttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testFindFileEuCentral() 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(), En... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3AttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3AttributesFinderFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n if(file.getType().contains(Path.Type.upload)) {\n // Pending multipart upload\n return PathAttributes.EMPT... | {
"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_1033 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/SyncTransferTest.java",
"identifier": "SyncTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAction() throws Exception {\n final Path p = new Path(\"t\", EnumSet.of(Path.Type.directory));\n Transfer t = new SyncTransfer(new Host(new TestProtocol()), new TransferItem(p, new NullLocal(\"p\", \"t\") {\n @Override\n public boolean exists()... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SyncTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SyncTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "upload",... | {
"body": "@Override\n public TransferAction action(final Session<?> source, final Session<?> destination, final boolean resumeRequested, final boolean reloadRequested,\n final TransferPrompt prompt, final ListProgressListener listener) {\n if(log.isDebugEnabled()) {\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_836 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/KeychainLoginServiceTest.java",
"identifier": "KeychainLoginServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = LoginCanceledException.class)\n public void testCancel() throws Exception {\n LoginService l = new KeychainLoginService(new DisabledPasswordStore());\n l.validate(new Host(new TestProtocol(), \"h\"), \"\", new DisabledLoginCallback(), new LoginOptions());\n }",
"class... | {
"fields": [
{
"declarator": "log = Logger.getLogger(KeychainLoginService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(KeychainLoginService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public void validate(final Host bookmark, final String message, final LoginCallback prompt,\n final LoginOptions options) throws LoginCanceledException, LoginFailureException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Validate login c... | {
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.