id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
79564911_108 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3VersionedObjectListServiceTest.java",
"identifier": "S3VersionedObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testDirectoyPlaceholderWithChildren() throws Exception {\n final Path bucket = new Path(\"versioning-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path directory = new S3DirectoryFeature(session, new S3WriteFeature(session)).mkd... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3VersionedObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3VersionedObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n final ThreadPool pool = ThreadPoolFactory.get(\"list\", concurrency);\n try {\n final String prefix = this.createPrefix(directory);\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1327 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/auth/SFTPPasswordAuthenticationTest.java",
"identifier": "SFTPPasswordAuthenticationTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test(expected = LoginFailureException.class)\n public void testAuthenticateFailure() throws Exception {\n // Reconnect\n session.disconnect();\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n session.getHost().getCredentials().setPa... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPPasswordAuthentication.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPPasswordAuthentication.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Boolean authenticate(final Host bookmark, final LoginCallback callback, final CancelCallback cancel)\n throws BackgroundException {\n final Credentials credentials = bookmark.getCredentials();\n if(StringUtils.isBlank(credentials.getPassword())) {\n fin... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_221 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPStatListServiceTest.java",
"identifier": "FTPStatListServiceTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testParse() {\n final List<String> list = new FTPStatListService(null, null).parse(\n 212, new String[]{\" drwxr-xr-x 11 root root 8192 Dec 14 23:44 DK_BookStore\"});\n assertEquals(1, list.size());\n }",
"class_method_signature": "FTPStatL... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FTPListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FTPListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "protected List<String> parse(final int response, final String[] reply) {\n final List<String> result = new ArrayList<String>(reply.length);\n for(final String line : reply) {\n // Some servers include the status code for every line.\n if(line.startsWith(String.valueOf(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_671 | {
"fields": [],
"file": "importer/src/test/java/ch/cyberduck/core/importer/WinScpBookmarkCollectionTest.java",
"identifier": "WinScpBookmarkCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParse() throws Exception {\n WinScpBookmarkCollection c = new WinScpBookmarkCollection();\n assertEquals(0, c.size());\n c.parse(new ProtocolFactory(new HashSet<>(Arrays.asList(new TestProtocol(Scheme.ftp), new TestProtocol(Scheme.sftp)))), new Local(\"src/te... | {
"fields": [
{
"declarator": "log = Logger.getLogger(WinScpBookmarkCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(WinScpBookmarkCollection.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {\n try (final BufferedReader in = new BufferedReader(new InputStreamReader(file.getInputStream(), StandardCharsets.UTF_8))) {\n Host current = null;\n String lin... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_364 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveUrlProviderTest.java",
"identifier": "DriveUrlProviderTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testToUrl() throws Exception {\n final DriveUrlProvider provider = new DriveUrlProvider();\n final Path test = new Path(DriveHomeFinderService.MYDRIVE_FOLDER, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n assertNotNull(provider.toUrl(test));\n ... | {
"fields": [],
"file": "googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveUrlProvider.java",
"identifier": "DriveUrlProvider",
"interfaces": "implements UrlProvider",
"methods": [
{
"class_method_signature": "DriveUrlProvider.toUrl(final Path file)",
"constructor": false,
"fu... | {
"body": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n if(file.attributes().getLink() != DescriptiveUrl.EMPTY) {\n list.add(file.attributes().getLink());\n }\n return list;\n }",
"class_method_... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_734 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesApplicationFinderTest.java",
"identifier": "LaunchServicesApplicationFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindByFilename() {\n ApplicationFinder f = new LaunchServicesApplicationFinder();\n assertEquals(new Application(\"com.apple.Preview\", \"Preview\"), f.find(\"file.png\"));\n assertEquals(Application.notfound, f.find(\"file.txt_\"));\n }",
"class_method_... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LaunchServicesApplicationFinder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LaunchServicesApplicationFinder.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n public Application find(final String filename) {\n final String extension = Path.getExtension(filename);\n if(!defaultApplicationCache.contains(extension)) {\n if(StringUtils.isEmpty(extension)) {\n return Application.notfound;\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_1262 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2SessionTest.java",
"identifier": "B2SessionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = LoginFailureException.class)\n public void testLoginFailure() throws Exception {\n final Host host = new Host(new B2Protocol(), new B2Protocol().getDefaultHostname(), new Credentials(\n System.getProperties().getProperty(\"b2.user\"), \"s\"\n ));\n final ... | {
"fields": [
{
"declarator": "retryHandler",
"modifier": "private",
"original_string": "private B2ErrorResponseInterceptor retryHandler;",
"type": "B2ErrorResponseInterceptor",
"var_name": "retryHandler"
},
{
"declarator": "fileid = new B2FileidProvider(this)",
"... | {
"body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n try {\n final String accountId = host.getCredentials().getUsername();\n final String applicationKey = host.getCredentials().getPassword();... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_919 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/ReadSizeWorkerTest.java",
"identifier": "ReadSizeWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRun() throws Exception {\n final Path d = new Path(\"/d\", EnumSet.of(Path.Type.directory));\n d.attributes().setSize(-1L);\n final ReadSizeWorker worker = new ReadSizeWorker(Collections.singletonList(d)) {\n @Override\n public void clea... | {
"fields": [
{
"declarator": "files",
"modifier": "private final",
"original_string": "private final List<Path> files;",
"type": "List<Path>",
"var_name": "files"
},
{
"declarator": "total = 0L",
"modifier": "private",
"original_string": "private Long total... | {
"body": "@Override\n public Long run(final Session<?> session) throws BackgroundException {\n for(Path next : files) {\n if(this.isCanceled()) {\n throw new ConnectionCanceledException();\n }\n if(-1 == next.attributes().getSize()) {\n continu... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_81 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3LoggingFeatureTest.java",
"identifier": "S3LoggingFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testWriteNotFound() throws Exception {\n new S3LoggingFeature(session).setConfiguration(\n new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory)), new LoggingConfiguration(false)\n );\n }",
"class_meth... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3LoggingFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3LoggingFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public void setConfiguration(final Path file, final LoggingConfiguration configuration) throws BackgroundException {\n // Logging target bucket\n final Path bucket = containerService.getContainer(file);\n try {\n final S3BucketLoggingStatus status = new S3Buck... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1409 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftAccountLoaderTest.java",
"identifier": "SwiftAccountLoaderTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testOperate() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n assertFalse(new SwiftAccountLoader(session).operate(new DisabledLoginCallback(), container).isEmpty());\n }",
"class_meth... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftAccountLoader.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftAccountLoader.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n protected Map<Region, AccountInfo> operate(final PasswordCallback callback, final Path file) throws BackgroundException {\n try {\n final Map<Region, AccountInfo> accounts = new ConcurrentHashMap<>();\n for(Region region : session.getClient().getRegions()) {\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_1059 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/download/ResumeFilterTest.java",
"identifier": "ResumeFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAcceptDirectory() throws Exception {\n ResumeFilter f = new ResumeFilter(new DisabledDownloadSymlinkResolver(), new NullSession(new Host(new TestProtocol())));\n Path p = new Path(\"a\", EnumSet.of(Path.Type.directory));\n assertTrue(f.accept(p, new NullLocal... | {
"fields": [
{
"declarator": "log = Logger.getLogger(ResumeFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(ResumeFilter.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "download... | {
"body": "@Override\n public boolean accept(final Path file, final Local local, final TransferStatus parent) throws BackgroundException {\n if(local.isFile()) {\n if(local.exists()) {\n // Read remote attributes\n final PathAttributes attributes = attribute.find(fil... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_626 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraTouchFeatureTest.java",
"identifier": "SpectraTouchFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFile() {\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.valueOf(System.ge... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final SpectraSession session;",
"type": "SpectraSession",
"var_name": "session"
},
{
"declarator": "writer",
"modifier": "private final",
"original_string": "pr... | {
"body": "@Override\n public boolean isSupported(final Path workdir, final String filename) {\n // Creating files is only possible inside a bucket.\n return !workdir.isRoot();\n }",
"class_method_signature": "SpectraTouchFeature.isSupported(final Path workdir, final String filename)",
"constr... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_276 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPDirectoryFeatureTest.java",
"identifier": "FTPDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testMakeDirectory() 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 assertTrue(ses... | {
"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/FTPDirectoryFeature.java",
"identifier": "FTPDirec... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(!session.getClient().makeDirectory(folder.getAbsolute())) {\n throw new FTPException(session.getClient().getReplyCode(), session.g... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1370 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftReadFeatureTest.java",
"identifier": "SwiftReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testReadCloseReleaseEntity() throws Exception {\n final TransferStatus status = new TransferStatus();\n final Path container = new Path(\".ACCESS_LOGS\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"DFW\");\n fin... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n // Do not set checksum when metadata key X-Static-Large-Object is present. Disable checksum verification in download filter.\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1235 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2WriteFeatureTest.java",
"identifier": "B2WriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testWriteChecksumFailure() throws Exception {\n final Path bucket = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path file = new Path(bucket, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final TransferSt... | {
"fields": [
{
"declarator": "log = Logger.getLogger(B2WriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(B2WriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "cont... | {
"body": "@Override\n public HttpResponseOutputStream<BaseB2Response> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n // Submit store call to background thread\n final DelayedHttpEntityCallable<BaseB2Response> command = new Delaye... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_299 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureAclPermissionFeatureTest.java",
"identifier": "AzureAclPermissionFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testReadNotFoundContainer() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getPrope... | {
"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 Acl getPermission(final Path file) throws BackgroundException {\n try {\n if(containerService.isContainer(file)) {\n final CloudBlobContainer container = session.getClient()\n .getContainerReference(containerService.getContainer(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_763 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesQuarantineServiceTest.java",
"identifier": "LaunchServicesQuarantineServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSetQuarantine() 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 ... | {
"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 setQuarantine(final Local file, final String originUrl, final String dataUrl) throws LocalAccessDeniedException {\n if(StringUtils.isEmpty(originUrl)) {\n log.warn(\"No origin url given for quarantine\");\n return;\n }\n if(StringUtils.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_333 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalReadFeatureTest.java",
"identifier": "LocalReadFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLo... | {
"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_78 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3PresignedUrlProviderTest.java",
"identifier": "S3PresignedUrlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCustomHostnameWithRegion() {\n final Calendar expiry = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n expiry.add(Calendar.MILLISECOND, (int) TimeUnit.DAYS.toMillis(7));\n final String url = new S3PresignedUrlProvider().create(new Host(new S3Protocol()... | {
"fields": [],
"file": "s3/src/main/java/ch/cyberduck/core/s3/S3PresignedUrlProvider.java",
"identifier": "S3PresignedUrlProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "S3PresignedUrlProvider.create(final Host host, final String user, final String secret,\n ... | {
"body": "public String create(final Host host, final String user, final String secret,\n final String bucket, String region, final String key,\n final String method, final long expiry) {\n final S3Protocol.AuthenticationHeaderSignatureVersion signature;\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_97 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3DefaultDeleteFeatureTest.java",
"identifier": "S3DefaultDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testDeletePlaceholder() throws Exception {\n final Path container = new Path(\"versioning-test-eu-central-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final Path test = new S3DirectoryFeature(session, new S3WriteFeature(session, new S3DisabledMultipartService())).mkd... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3DefaultDeleteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3DefaultDeleteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"de... | {
"body": "public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n final List<Path> containers = new ArrayList<Path>();\n for(Path file : files.keySet()) {\n if(containerService.isContainer(file)) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_519 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVMoveFeatureTest.java",
"identifier": "DAVMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testMoveOverride() throws Exception {\n final Path test = new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n new DAVTouchFeature(session).touch(test, new TransferStatus());\n final... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final DAVSession session;",
"type": "DAVSession",
"var_name": "session"
}
],
"file": "webdav/src/main/java/ch/cyberduck/core/dav/DAVMoveFeature.java",
"identifier": "DAVMoveFea... | {
"body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n try {\n final String target = new DefaultUrlProvider(session.getHost()).toUrl(renam... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_149 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java",
"identifier": "S3ObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testListDefaultPath() 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 host.setDefault... | {
"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_1366 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftReadFeatureTest.java",
"identifier": "SwiftReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().s... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n // Do not set checksum when metadata key X-Static-Large-Object is present. Disable checksum verification in download filter.\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_260 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPDefaultListServiceTest.java",
"identifier": "FTPDefaultListServiceTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testListDefaultFlag() throws Exception {\n final ListService list = new FTPDefaultListService(session, new CompositeFileEntryParser(Collections.singletonList(new UnixFTPEntryParser())),\n FTPListService.Command.lista);\n final Path directory = new FTPWorkdirS... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final FTPSession session;",
"type": "FTPSession",
"var_name": "session"
},
{
"declarator": "command",
"modifier": "private final",
"original_string": "private f... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n if(!session.getClient().changeWorkingDirectory(directory.getAbsolute())) {\n throw new FTPException(session.getClient().getReply... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_630 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraBulkServiceTest.java",
"identifier": "SpectraBulkServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testPreDownloadNotFound() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getPrope... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SpectraBulkService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SpectraBulkService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public Set<UUID> pre(final Transfer.Type type, final Map<TransferItem, TransferStatus> files, final ConnectionCallback callback) throws BackgroundException {\n final Ds3Client client = new SpectraClientBuilder().wrap(session.getClient(), session.getHost());\n final Map<Path, Li... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_325 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureAttributesFinderFeatureTest.java",
"identifier": "AzureAttributesFinderFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testNotFound() 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().getPr... | {
"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 PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n try {\n if(containerService.isContainer(file)) {\n final PathAttributes attributes = new PathAttribute... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_775 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/preferences/BundleApplicationResourcesFinderTest.java",
"identifier": "BundleApplicationResourcesFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBundle() {\n Assert.assertNotNull(new BundleApplicationResourcesFinder().bundle());\n }",
"class_method_signature": "BundleApplicationResourcesFinderTest.testBundle()",
"constructor": false,
"full_signature": "@Test public void testBundle()",
"identifier": "test... | {
"fields": [
{
"declarator": "log = Logger.getLogger(BundleApplicationResourcesFinder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(BundleApplicationResourcesFinder.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "public NSBundle bundle() {\n if(cached != null) {\n return cached;\n }\n if(log.isInfoEnabled()) {\n log.info(\"Loading application bundle resources\");\n }\n final NSBundle main = NSBundle.mainBundle();\n if(null == main) {\n cache... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1389 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftAuthenticationServiceTest.java",
"identifier": "SwiftAuthenticationServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetDefault2() throws Exception {\n final SwiftAuthenticationService s = new SwiftAuthenticationService();\n final SwiftProtocol protocol = new SwiftProtocol() {\n @Override\n public String getContext() {\n return \"/v2.0/tokens\"... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftAuthenticationService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftAuthenticationService.class);",
"type": "Logger",
"var_name": "log"
}
],
"... | {
"body": "public Set<? extends AuthenticationRequest> getRequest(final Host bookmark, final LoginCallback prompt)\n throws LoginCanceledException {\n final StringBuilder url = new StringBuilder();\n url.append(bookmark.getProtocol().getScheme().toString()).append(\"://\");\n url.appen... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1223 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageWebsiteDistributionConfigurationTest.java",
"identifier": "GoogleStorageWebsiteDistributionConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testUrl() {\n final DistributionConfiguration configuration\n = new GoogleStorageWebsiteDistributionConfiguration(session);\n assertEquals(\"http://test.cyberduck.ch.storage.googleapis.com/f\", configuration.toUrl(new Path(\"test.cyberduck.ch/f\", EnumSet.of(... | {
"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 DescriptiveUrlBag toUrl(final Path file) {\n final Distribution distribution = new Distribution(URI.create(String.format(\"%s://%s.%s\",\n Distribution.DOWNLOAD.getScheme(), containerService.getContainer(file).getName(), this.getHostname())),\n Distributio... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_958 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/BookmarkNameProviderTest.java",
"identifier": "BookmarkNameProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringNoDefaultHostname() {\n final TestProtocol protocol = new TestProtocol(Scheme.file) {\n @Override\n public String getName() {\n return \"Disk\";\n }\n\n @Override\n public String getDefaultHostna... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/BookmarkNameProvider.java",
"identifier": "BookmarkNameProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "BookmarkNameProvider.BookmarkNameProvider()",
"constructor": true,
"full_signature": "private Bookm... | {
"body": "public static String toString(final Host bookmark) {\n return toString(bookmark, false);\n }",
"class_method_signature": "BookmarkNameProvider.toString(final Host bookmark)",
"constructor": false,
"full_signature": "public static String toString(final Host bookmark)",
"identifier": "toStr... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1448 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/SingleTransferItemFinderTest.java",
"identifier": "SingleTransferItemFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDownloadDirectoryTarget() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final String temp = System.getProperty(\"java.io.tmpdir\");\n final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--downlo... | {
"fields": [
{
"declarator": "prefixer\n = new WorkdirPrefixer()",
"modifier": "private final",
"original_string": "private final WorkdirPrefixer prefixer\n = new WorkdirPrefixer();",
"type": "WorkdirPrefixer",
"var_name": "prefixer"
}
],
"file": "cli/s... | {
"body": "@Override\n public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) {\n if(input.getOptionValues(action.name()).length == 2) {\n switch(action) {\n case download:\n return new DownloadTransferItemFinder().... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1018 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/SpeedometerTest.java",
"identifier": "SpeedometerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testStopped() {\n final long start = System.currentTimeMillis();\n Speedometer m = new Speedometer(start, true);\n assertEquals(\"0 B of 1.0 MB\", m.getProgress(true, 1000000L, 0L));\n assertEquals(\"500.0 KB of 1.0 MB\", m.getProgress(false, 1000000L, 100... | {
"fields": [
{
"declarator": "sizeFormatter = SizeFormatterFactory.get()",
"modifier": "private",
"original_string": "private SizeFormatter sizeFormatter = SizeFormatterFactory.get();",
"type": "SizeFormatter",
"var_name": "sizeFormatter"
},
{
"declarator": "timestamp"... | {
"body": "public String getProgress(final boolean running, final long size, final long transferred) {\n return this.getProgress(System.currentTimeMillis(), running, size, transferred);\n }",
"class_method_signature": "Speedometer.getProgress(final boolean running, final long size, final long transferred)... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_667 | {
"fields": [],
"file": "importer/src/test/java/ch/cyberduck/core/importer/TotalCommanderBookmarkCollectionTest.java",
"identifier": "TotalCommanderBookmarkCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = AccessDeniedException.class)\n public void testParseNotFound() throws Exception {\n new TotalCommanderBookmarkCollection().parse(new ProtocolFactory(Collections.emptySet()), new Local(System.getProperty(\"java.io.tmpdir\"), \"f\"));\n }",
"class_method_signature": "TotalComm... | {
"fields": [
{
"declarator": "log = Logger.getLogger(TotalCommanderBookmarkCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(TotalCommanderBookmarkCollection.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {\n try (final BufferedReader in = new BufferedReader(new InputStreamReader(file.getInputStream(), StandardCharsets.UTF_8))) {\n Host current = null;\n String lin... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_237 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java",
"identifier": "FTPMlsdListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseMlsdMode664() throws Exception {\n Path path = new Path(\n \"/www\", EnumSet.of(Path.Type.directory));\n String[] replies = new String[]{\n \"modify=19990307234236;perm=adfr;size=60;type=file;unique=FE03U10001724;UNIX.group=1001;UNIX.mode=... | {
"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_1331 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPCompressFeatureTest.java",
"identifier": "SFTPCompressFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n @Ignore\n public void testArchive() throws Exception {\n final SFTPCompressFeature feature = new SFTPCompressFeature(session);\n for(Archive archive : Archive.getKnownArchives()) {\n final Path workdir = new SFTPHomeDirectoryService(session).find();\n final... | {
"fields": [
{
"declarator": "command",
"modifier": "private final",
"original_string": "private final SFTPCommandFeature command;",
"type": "SFTPCommandFeature",
"var_name": "command"
}
],
"file": "ssh/src/main/java/ch/cyberduck/core/sftp/SFTPCompressFeature.java",
"ident... | {
"body": "public void archive(final Archive archive, final Path workdir, final List<Path> files,\n final ProgressListener listener, final TranscriptListener transcript) throws BackgroundException {\n command.send(archive.getCompressCommand(workdir, files), listener, transcript);\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_1274 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPReadFeatureTest.java",
"identifier": "SFTPReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n new SFTPReadFeature(session).read(new Path(new SFTPHomeDirectoryService(session).find(), \"nosuchname\", EnumSet.of(Path.Type.file)), status... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "se... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final RemoteFile handle = session.sftp().open(file.getAbsolute(), EnumSet.of(OpenMode.READ));\n final int maxUnconfirme... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_722 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/diagnostics/SystemConfigurationReachabilityTest.java",
"identifier": "SystemConfigurationReachabilityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMonitor() {\n final Reachability r = new SystemConfigurationReachability();\n final Reachability.Monitor monitor = r.monitor(new Host(new TestProtocol(), \"cyberduck.ch\", 80),\n new Reachability.Callback() {\n @Override\n pu... | {
"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 Monitor monitor(final Host bookmark, final Callback callback) {\n final String url = this.toURL(bookmark);\n return new Reachability.Monitor() {\n private final CDReachabilityMonitor monitor = CDReachabilityMonitor.monitorForUrl(url);\n private 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_688 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java",
"identifier": "NSImageIconCacheTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCacheSystemIcon() {\n final NSImageIconCache cache = new NSImageIconCache();\n final NSImage icon32 = cache.iconNamed(\"NSComputer\", 32);\n assertNotNull(icon32);\n assertEquals(32, icon32.size().width.intValue());\n assertEquals(32, icon32.siz... | {
"fields": [
{
"declarator": "log = Logger.getLogger(NSImageIconCache.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(NSImageIconCache.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public NSImage iconNamed(final String name, final Integer width, final Integer height) {\n // Search for an object whose name was set explicitly using the setName: method and currently\n // resides in the image cache\n NSImage image = this.load(name, width);\n if(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_372 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveReadFeatureTest.java",
"identifier": "DriveReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testReadWhitespace() throws Exception {\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache);\n final Path file = new DriveTouchFeature(session, fileid).touch(new Path(DriveHomeFinderService.MYDRIVE_FOLDER, String.format(\"t %s\", new A... | {
"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_305 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureCopyFeatureTest.java",
"identifier": "AzureCopyFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCopyToExistingFile() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getProperties().getProperty(\"azure.key\")\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(AzureCopyFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(AzureCopyFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public Path copy(final Path source, final Path copy, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final CloudBlob target = session.getClient().getContainerReference(containerService.getContainer(copy).getName())\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_755 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/WorkspaceSymlinkFeatureTest.java",
"identifier": "WorkspaceSymlinkFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSymlink() throws Exception {\n final Local target = new Local(PreferencesFactory.get().getProperty(\"tmp.dir\"),\n UUID.randomUUID().toString());\n new DefaultLocalTouchFeature().touch(target);\n final Local symlink = new Local(PreferencesFacto... | {
"fields": [
{
"declarator": "log = Logger.getLogger(WorkspaceSymlinkFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(WorkspaceSymlinkFeature.class);",
"type": "Logger",
"var_name": "log"
}
],
"file":... | {
"body": "@Override\n public void symlink(final Local file, final String target) throws AccessDeniedException {\n final ObjCObjectByReference error = new ObjCObjectByReference();\n final boolean success = NSFileManager.defaultManager().createSymbolicLinkAtPath_withDestinationPath_error(\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_1203 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageSessionTest.java",
"identifier": "GoogleStorageSessionTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test(expected = LoginCanceledException.class)\n public void testInvalidProjectId() throws Exception {\n session.getHost().setCredentials(\n new Credentials(\"duck-1432\", \"\")\n );\n session.login(Proxy.DIRECT, new DisabledLoginCallback(), new DisabledCancelCallback());... | {
"fields": [
{
"declarator": "transport",
"modifier": "private",
"original_string": "private ApacheHttpTransport transport;",
"type": "ApacheHttpTransport",
"var_name": "transport"
},
{
"declarator": "authorizationService",
"modifier": "private",
"original_... | {
"body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt,\n final CancelCallback cancel) throws BackgroundException {\n authorizationService.setTokens(authorizationService.authorize(host, prompt, cancel));\n }",
"class_method_signature": "GoogleStorage... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1346 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftFindFeatureTest.java",
"identifier": "SwiftFindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testFindContainer() 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 assertTrue(new SwiftFindFeature(session).find(container));\n }",
... | {
"fields": [
{
"declarator": "feature",
"modifier": "private final",
"original_string": "private final Headers feature;",
"type": "Headers",
"var_name": "feature"
}
],
"file": "openstack/src/main/java/ch/cyberduck/core/openstack/SwiftFindFeature.java",
"identifier": "Swift... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n feature.getMetadata(file);\n return true;\n }\n catch(NotfoundException e) {\n return false;\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_240 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java",
"identifier": "FTPMlsdListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore\n public void testParseSlashInFilename() throws Exception {\n Path path = new Path(\"/www\", EnumSet.of(Path.Type.directory));\n String[] replies = new String[]{\n \"type=dir;modify=20140315210350; Gozo 2013/2014\",\n \"type=dir;modify=2014031521035... | {
"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_610 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraAttributesFinderFeatureTest.java",
"identifier": "SpectraAttributesFinderFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindBucket() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties().getProperty(\"spectra.hostname\"), In... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SpectraAttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SpectraAttributesFinderFeature.class);",
"type": "Logger",
"var_name": "log"
},... | {
"body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n if(containerService.isContainer(file)) {\n return PathAttributes.EMPTY;\n }\n return this.toAttributes(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_539 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVDeleteFeatureTest.java",
"identifier": "DAVDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testDeleteFile() throws Exception {\n final Path test = new Path(new DefaultHomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new DAVTouchFeature(session).touch(test, new TransferStatus());\n assertTrue(new DAVFindFea... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final DAVSession session;",
"type": "DAVSession",
"var_name": "session"
}
],
"file": "webdav/src/main/java/ch/cyberduck/core/dav/DAVDeleteFeature.java",
"identifier": "DAVDelet... | {
"body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n final List<Path> deleted = new ArrayList<Path>();\n for(Map.Entry<Path, TransferStatus> file : files.entrySet()) {\n boole... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_493 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java",
"identifier": "SDSDelegatingMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testMoveNotFound() throws Exception {\n final Path room = new Path(\n new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n final Path test = new Path(r... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSDelegatingMoveFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSDelegatingMoveFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback,\n final ConnectionCallback connectionCallback) throws BackgroundException {\n if(containerService.isContainer(source)) {\n if(new SimplePa... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_169 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java",
"identifier": "S3SessionTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testBucketVirtualHostStyleEucalyptusCustomDeployment() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new S3Protocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Loca... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3Session.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3Session.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences\n ... | {
"body": "@Override\n public RequestEntityRestStorageService connect(final Proxy proxy, final HostKeyCallback hostkey, final LoginCallback prompt) {\n final HttpClientBuilder configuration = builder.build(proxy, this, prompt);\n // Only for AWS\n if(S3Session.isAwsHostname(host.getHostname())... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_186 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3AccessControlListFeatureTest.java",
"identifier": "S3AccessControlListFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testWriteNotFound() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.o... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3AccessControlListFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3AccessControlListFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public void setPermission(final Path file, final Acl acl) throws BackgroundException {\n try {\n final Path container = containerService.getContainer(file);\n if(null == acl.getOwner()) {\n // Read owner from cache\n acl.setOwner(fil... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_58 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3MoveFeatureTest.java",
"identifier": "S3MoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testMoveVersioned() throws Exception {\n final Path container = new Path(\"versioning-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n Path test = new Path(container, new AsciiRandomStringService().random(), EnumSet.of(Path.Type.file));\... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3MoveFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3MoveFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "contai... | {
"body": "@Override\n public Path move(final Path source, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n Path copy;\n if(source.attributes().getCustom().containsKey(KEY_DELETE_MARKER)) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_885 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PasswordStrengthValidatorTest.java",
"identifier": "PasswordStrengthValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetScore() {\n assertEquals(PasswordStrengthValidator.Strength.veryweak, new PasswordStrengthValidator().getScore(\"\"));\n assertEquals(PasswordStrengthValidator.Strength.veryweak, new PasswordStrengthValidator().getScore(\"Cyberduck\"));\n assertEquals(Pass... | {
"fields": [
{
"declarator": "zxcvbn = new Zxcvbn()",
"modifier": "private final",
"original_string": "private final Zxcvbn zxcvbn = new Zxcvbn();",
"type": "Zxcvbn",
"var_name": "zxcvbn"
}
],
"file": "core/src/main/java/ch/cyberduck/core/PasswordStrengthValidator.java",
"... | {
"body": "public Strength getScore(final String password) {\n if(StringUtils.isEmpty(password)) {\n return Strength.veryweak;\n }\n else {\n final int score = zxcvbn.measure(password, Collections.singletonList(\n PreferencesFactory.get().getProperty(\"app... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1080 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/DefaultIOExceptionMappingServiceTest.java",
"identifier": "DefaultIOExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSameMessageInRootCause() {\n assertEquals(\"S. The connection attempt was rejected. The server may be down, or your network may not be properly configured.\", new DefaultIOExceptionMappingService().map(new IOException(\"s\", new SocketException(\"s\")))\n .getDe... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/DefaultIOExceptionMappingService.java",
"identifier": "DefaultIOExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)",
... | {
"body": "public BackgroundException map(final IOException failure, final Path directory) {\n return super.map(\"Connection failed\", failure, directory);\n }",
"class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)",
"constructor": false,
"fu... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1254 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2LargeUploadPartServiceTest.java",
"identifier": "B2LargeUploadPartServiceTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testDelete() throws Exception {\n final Path bucket = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path file = new Path(bucket, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final B2StartLargeFileResponse... | {
"fields": [
{
"declarator": "log = Logger.getLogger(B2LargeUploadPartService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(B2LargeUploadPartService.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "public void delete(final String id) throws BackgroundException {\n if(log.isInfoEnabled()) {\n log.info(String.format(\"Delete multipart upload for fileid %s\", id));\n }\n try {\n session.getClient().cancelLargeFileUpload(id);\n }\n catch(B2ApiExcep... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_702 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/io/watchservice/FSEventWatchServiceTest.java",
"identifier": "FSEventWatchServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNotfound() throws Exception {\n final FileWatcher watcher = new FileWatcher(new FSEventWatchService());\n final Local file = new Local(System.getProperty(\"java.io.tmpdir\") + \"/notfound\", UUID.randomUUID().toString());\n assertFalse(file.exists());\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FSEventWatchService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FSEventWatchService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public WatchKey register(final Watchable folder,\n final WatchEvent.Kind<?>[] events,\n final WatchEvent.Modifier... modifiers)\n throws IOException {\n if(log.isInfoEnabled()) {\n log.info(String.format(\"Regis... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_352 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalListServiceTest.java",
"identifier": "LocalListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testListSymlink() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n assumeTrue(session.isPosixFilesystem());\n assertNotNull(session.open(Proxy.DIRECT, new DisabledHostKe... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LocalListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LocalListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n final AttributedList<ch.cyberduck.core.Path> paths = new AttributedList<>();\n try (DirectoryStream<java.nio.file.Path> directoryStream = Files.newDirector... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_647 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSSessionTest.java",
"identifier": "IRODSSessionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore\n public void testLoginPamAuthentication() 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(\"..... | {
"fields": [
{
"declarator": "log = Logger.getLogger(IRODSSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(IRODSSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferen... | {
"body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n try {\n final IRODSAccount account = client.getIRODSAccount();\n final Credentials credentials = host.getCredentials();\n accou... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_217 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPWorkdirServiceTest.java",
"identifier": "FTPWorkdirServiceTest",
"interfaces": "",
"superclass": "extends AbstractFTPTest"
} | {
"body": "@Test\n public void testDefaultPath() throws Exception {\n assertEquals(\"/\", new FTPWorkdirService(session).find().getAbsolute());\n }",
"class_method_signature": "FTPWorkdirServiceTest.testDefaultPath()",
"constructor": false,
"full_signature": "@Test public void testDefaultPath()",
... | {
"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/FTPWorkdirService.java",
"identifier": "FTPWorkdir... | {
"body": "@Override\n public Path find() throws BackgroundException {\n final Path home = super.find();\n if(home == DEFAULT_HOME) {\n final String directory;\n try {\n directory = session.getClient().printWorkingDirectory();\n if(null == directory... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1311 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPWriteFeatureTest.java",
"identifier": "SFTPWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n public void testAppend() throws Exception {\n final Path workdir = new SFTPHomeDirectoryService(session).find();\n final Path test = new Path(workdir, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n assertFalse(new SFTPWriteFeature(session).app... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPWriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPWriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public boolean random() {\n return true;\n }",
"class_method_signature": "SFTPWriteFeature.random()",
"constructor": false,
"full_signature": "@Override public boolean random()",
"identifier": "random",
"invocations": [],
"modifiers": "@Override public",
"parameters":... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1 | {
"fields": [],
"file": "udt/src/test/java/ch/cyberduck/core/udt/UDTSocketTest.java",
"identifier": "UDTSocketTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = SocketTimeoutException.class)\n public void testConnect() throws Exception {\n new UDTSocket().connect(new InetSocketAddress(\"localhost\", 11111), 1000);\n }",
"class_method_signature": "UDTSocketTest.testConnect()",
"constructor": false,
"full_signature": "@Test(expect... | {
"fields": [
{
"declarator": "log = Logger.getLogger(UDTSocket.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(UDTSocket.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "threadFactory\... | {
"body": "@Override\n public void connect(final SocketAddress endpoint, final int timeout) throws IOException {\n final CountDownLatch signal = new CountDownLatch(1);\n final Thread t = threadFactory.newThread(new Runnable() {\n @Override\n public void run() {\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_1468 | {
"fields": [],
"file": "onedrive/src/test/java/ch/cyberduck/core/onedrive/SharepointListServiceTest.java",
"identifier": "SharepointListServiceTest",
"interfaces": "",
"superclass": "extends AbstractSharepointTest"
} | {
"body": "@Test\n public void testListGroups() throws Exception {\n new SharepointListService(session, new GraphFileIdProvider(session)).list(SharepointListService.GROUPS_NAME, new DisabledListProgressListener());\n }",
"class_method_signature": "SharepointListServiceTest.testListGroups()",
"constru... | {
"fields": [
{
"declarator": "DEFAULT_ID = \"DEFAULT_NAME\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_ID = \"DEFAULT_NAME\";",
"type": "String",
"var_name": "DEFAULT_ID"
},
{
"declarator": "GROUPS_ID = \"GROUPS_NAME\"... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n if(directory.isRoot()) {\n final AttributedList<Path> list = new AttributedList<>();\n list.add(DEFAULT_NAME);\n list.add(GROUPS_... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1192 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageObjectListServiceTest.java",
"identifier": "GoogleStorageObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testListObjects() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final AttributedList<Path> list = new GoogleStorageObjectListService(session).list(container, new DisabledListProgressList... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GoogleStorageObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GoogleStorageObjectListService.class);",
"type": "Logger",
"var_name": "log"
},... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, String.valueOf(Path.DELIMITER), preferences.getInteger(\"googlestorage.listing.chunksize\"));\n }",
"class_method_signa... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1038 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/UploadTransferTest.java",
"identifier": "UploadTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testList() throws Exception {\n final NullLocal local = new NullLocal(\"t\") {\n @Override\n public AttributedList<Local> list() {\n AttributedList<Local> l = new AttributedList<Local>();\n l.add(new NullLocal(this.getAbsolut... | {
"fields": [
{
"declarator": "log = Logger.getLogger(UploadTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(UploadTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "filt... | {
"body": "@Override\n public List<TransferItem> list(final Session<?> session, final Path remote,\n final Local directory, final ListProgressListener listener) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"List children fo... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_997 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/symlink/DownloadSymlinkResolverTest.java",
"identifier": "DownloadSymlinkResolverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testResolve() {\n final ArrayList<TransferItem> files = new ArrayList<TransferItem>();\n files.add(new TransferItem(new Path(\"/a\", EnumSet.of(Path.Type.directory))));\n DownloadSymlinkResolver resolver = new DownloadSymlinkResolver(files);\n Path p = new... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DownloadSymlinkResolver.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DownloadSymlinkResolver.class);",
"type": "Logger",
"var_name": "log"
},
{
"... | {
"body": "@Override\n public boolean resolve(final Path file) {\n if(PreferencesFactory.get().getBoolean(\"path.symboliclink.resolve\")) {\n // Follow links instead\n return false;\n }\n // Create symbolic link only if supported by the local file system\n if(featu... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_978 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java",
"identifier": "HostParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void parseDefaultHostname() throws Exception {\n final Host host = new HostParser(new ProtocolFactory(Collections.singleton(new TestProtocol(Scheme.https) {\n @Override\n public String getDefaultHostname() {\n return \"defaultHostname\";\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(HostParser.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(HostParser.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences ... | {
"body": "public Host get(final String url) throws HostParserException {\n final Host parsed = HostParser.parse(factory, defaultScheme, url);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Parsed %s as %s\", url, parsed));\n }\n return parsed;\n }",
"class_method... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1487 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxProtocolTest.java",
"identifier": "DropboxProtocolTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPassword() {\n assertFalse(new DropboxProtocol().isPasswordConfigurable());\n }",
"class_method_signature": "DropboxProtocolTest.testPassword()",
"constructor": false,
"full_signature": "@Test public void testPassword()",
"identifier": "testPassword",
"invocat... | {
"fields": [],
"file": "dropbox/src/main/java/ch/cyberduck/core/dropbox/DropboxProtocol.java",
"identifier": "DropboxProtocol",
"interfaces": "",
"methods": [
{
"class_method_signature": "DropboxProtocol.getIdentifier()",
"constructor": false,
"full_signature": "@Override public String ... | {
"body": "@Override\n public boolean isPasswordConfigurable() {\n // Only provide account email\n return false;\n }",
"class_method_signature": "DropboxProtocol.isPasswordConfigurable()",
"constructor": false,
"full_signature": "@Override public boolean isPasswordConfigurable()",
"identif... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_581 | {
"fields": [],
"file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/CryptoOutputStreamTest.java",
"identifier": "CryptoOutputStreamTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testWriteWithChunkSize() throws Exception {\n final CryptoVault vault = this.getVault();\n final ByteArrayOutputStream cipherText = new ByteArrayOutputStream();\n final FileHeader header = vault.getFileHeaderCryptor().create();\n final CryptoOutputStream<?... | {
"fields": [
{
"declarator": "proxy",
"modifier": "private final",
"original_string": "private final StatusOutputStream<Reply> proxy;",
"type": "StatusOutputStream<Reply>",
"var_name": "proxy"
}
],
"file": "cryptomator/src/main/java/ch/cyberduck/core/cryptomator/CryptoOutput... | {
"body": "@Override\n public void write(final int b) throws IOException {\n throw new IOException(new UnsupportedOperationException());\n }",
"class_method_signature": "CryptoOutputStream.write(final int b)",
"constructor": false,
"full_signature": "@Override public void write(final int b)",
"id... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_344 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalFindFeatureTest.java",
"identifier": "LocalFindFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindNotFound() 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.log... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LocalFindFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LocalFindFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(Files.isSymbolicLink(session.toPath(file))) {\n // Do not follow symbolic link to test for file\n return Files.exists(session.toPath(file), LinkOption.NOFOLLOW_LINKS);\n }\n // T... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_714 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/importer/FetchBookmarkCollectionTest.java",
"identifier": "FetchBookmarkCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = AccessDeniedException.class)\n public void testParseNotFound() throws Exception {\n new FetchBookmarkCollection().parse(new ProtocolFactory(Collections.emptySet()), new Local(System.getProperty(\"java.io.tmpdir\"), \"f\"));\n }",
"class_method_signature": "FetchBookmarkColle... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FetchBookmarkCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FetchBookmarkCollection.class);",
"type": "Logger",
"var_name": "log"
},
{
"... | {
"body": "@Override\n protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {\n NSDictionary serialized = NSDictionary.dictionaryWithContentsOfFile(file.getAbsolute());\n if(null == serialized) {\n throw new LocalAccessDeniedException(String.... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1242 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2LargeUploadServiceTest.java",
"identifier": "B2LargeUploadServiceTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testAppendSecondPart() throws Exception {\n final Path bucket = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(bucket, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final Local local = ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(B2LargeUploadService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(B2LargeUploadService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public BaseB2Response upload(final Path file, final Local local,\n final BandwidthThrottle throttle,\n final StreamListener listener,\n final TransferStatus status,\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_1307 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPUnixPermissionFeatureTest.java",
"identifier": "SFTPUnixPermissionFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n @Ignore\n public void testRetainStickyBits() throws Exception {\n final Path test = new Path(new SFTPHomeDirectoryService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new SFTPTouchFeature(session).touch(test, new TransferStatus());\n final... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final SFTPSession session;",
"type": "SFTPSession",
"var_name": "session"
}
],
"file": "ssh/src/main/java/ch/cyberduck/core/sftp/SFTPUnixPermissionFeature.java",
"identifier": ... | {
"body": "@Override\n public void setUnixPermission(final Path file, final Permission permission) throws BackgroundException {\n final FileAttributes attr = new FileAttributes.Builder()\n .withPermissions(Integer.parseInt(permission.getMode(), 8))\n .build();\n try {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_201 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/cloudfront/CloudFrontDistributionConfigurationTest.java",
"identifier": "CloudFrontDistributionConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testReadLoginFailureFix() throws Exception {\n assertTrue(session.isConnected());\n session.getHost().getCredentials().setPassword(null);\n assertNull(session.getHost().getCredentials().getPassword());\n final DistributionConfiguration configuration\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CloudFrontDistributionConfiguration.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CloudFrontDistributionConfiguration.class);",
"type": "Logger",
"var_name": "l... | {
"body": "@Override\n public Distribution read(final Path file, final Distribution.Method method, final LoginCallback prompt) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n return this.authenticated(new Authenticated<Distribution>() {\n @Overr... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_651 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSDirectoryFeatureTest.java",
"identifier": "IRODSDirectoryFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMakeDirectory() 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/IRODSDirectoryFeature.java",
"identifier":... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n final IRODSFileSystemAO fs = session.getClient();\n final IRODSFile f = fs.getIRODSFileFactory().instanceIRODSFile(folder.getAbsolute());... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_981 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java",
"identifier": "HostParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindUriType() {\n final Map<String, HostParser.URITypes> tests = ImmutableMap.<String, HostParser.URITypes>builder()\n .put(\"/path\", HostParser.URITypes.Absolute)\n .put(\"user@domain/path\", HostParser.URITypes.Rootless)\n .put(\"//user@... | {
"fields": [
{
"declarator": "log = Logger.getLogger(HostParser.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(HostParser.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences ... | {
"body": "static URITypes findURIType(final StringReader reader) {\n final StringReader copy = reader.copy();\n if(!copy.endOfString()) {\n char c = (char) copy.read();\n if(c == '/') {\n reader.skip(1);\n if(!copy.endOfString()) {\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_1184 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageLoggingFeatureTest.java",
"identifier": "GoogleStorageLoggingFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testGetConfiguration() throws Exception {\n final GoogleStorageLoggingFeature feature = new GoogleStorageLoggingFeature(session);\n final Path bucket = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n feature.setConfiguration(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GoogleStorageLoggingFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GoogleStorageLoggingFeature.class);",
"type": "Logger",
"var_name": "log"
},
{... | {
"body": "@Override\n public LoggingConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path bucket = containerService.getContainer(file);\n if(bucket.isRoot()) {\n return LoggingConfiguration.empty();\n }\n try {\n final Bucket.Lo... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_578 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVCopyFeatureTest.java",
"identifier": "DAVCopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testCopyDirectory() throws Exception {\n final Path directory = new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory));\n final String name = new AlphanumericRandomStringService().random();... | {
"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/DAVCopyFeature.java",
"identifier": "DAVCopyFea... | {
"body": "@Override\n public Path copy(final Path source, final Path copy, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final String target = new DefaultUrlProvider(session.getHost()).toUrl(copy).find(DescriptiveUrl.Type.provider).getUrl(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_128 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3BucketListServiceTest.java",
"identifier": "S3BucketListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testListRestrictRegion() throws Exception {\n final AttributedList<Path> list = new S3BucketListService(session, new S3LocationFeature.S3Region(\"eu-central-1\")).list(\n new Path(String.valueOf(Path.DELIMITER), EnumSet.of(Path.Type.volume, Path.Type.directory)), ne... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3BucketListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3BucketListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"List containers for %s\", session));\n }\n try {\n if(session.getHost()... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_597 | {
"fields": [],
"file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/impl/CryptoDirectoryV6ProviderTest.java",
"identifier": "CryptoDirectoryV6ProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testToEncryptedInvalidPath() throws Exception {\n final Path home = new Path(\"/vault\", EnumSet.of(Path.Type.directory));\n final CryptoVault vault = new CryptoVault(home);\n final CryptoDirectory provider = new CryptoDirector... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CryptoDirectoryV6Provider.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CryptoDirectoryV6Provider.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public String toEncrypted(final Session<?> session, final String directoryId, final String filename, final EnumSet<Path.Type> type) throws BackgroundException {\n final String prefix = type.contains(Path.Type.directory) ? CryptoVault.DIR_PREFIX : \"\";\n final String ciphertext... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_19 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3UrlProviderTest.java",
"identifier": "S3UrlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToSignedUrlThirdparty() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), \"s.greenqloud.com\",\n new Credentials(\"k\", \"s\")));\n final S3UrlProvider provider = new S3UrlProvider(session, new DisabledPasswordStore() {\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3UrlProvider.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3UrlProvider.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "contai... | {
"body": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n if(file.isFile()) {\n // Publicly accessible URL of given object\n list.add(this.toUrl(file, session.getHost().getProtocol().getScheme(), session.... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1491 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxMoveFeatureTest.java",
"identifier": "DropboxMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test\n public void testMoveToExistingFile() throws Exception {\n final Path home = new DropboxHomeFinderFeature(session).find();\n final Path folder = new DropboxDirectoryFeature(session).mkdir(\n new Path(home, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Ty... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final DropboxSession session;",
"type": "DropboxSession",
"var_name": "session"
},
{
"declarator": "containerService\n = new DropboxPathContainerService()",
"m... | {
"body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n try {\n if(status.isExists()) {\n new DropboxDeleteFeature(session).... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1215 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageAccessControlListFeatureTest.java",
"identifier": "GoogleStorageAccessControlListFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testReadBucket() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory));\n final GoogleStorageAccessControlListFeature f = new GoogleStorageAccessControlListFeature(session);\n final Acl acl = f.getPermission(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GoogleStorageAccessControlListFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GoogleStorageAccessControlListFeature.class);",
"type": "Logger",
"var_name"... | {
"body": "@Override\n public Acl getPermission(final Path file) throws BackgroundException {\n try {\n final Acl acl = new Acl();\n if(containerService.isContainer(file)) {\n final BucketAccessControls controls = session.getClient().bucketAccessControls().list(\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_743 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java",
"identifier": "FinderLocalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNoCaseSensitive() throws Exception {\n final String name = UUID.randomUUID().toString();\n FinderLocal l = new FinderLocal(System.getProperty(\"java.io.tmpdir\"), name);\n new DefaultLocalTouchFeature().touch(l);\n assertTrue(l.exists());\n asse... | {
"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 boolean exists(final LinkOption... options) {\n NSURL resolved = null;\n try {\n resolved = this.lock(false);\n if(null == resolved) {\n return super.exists(options);\n }\n return Files.exists(Paths.get(resolved.... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_313 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureSessionTest.java",
"identifier": "AzureSessionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConnect() 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 ));\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(AzureSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(AzureSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "context\... | {
"body": "@Override\n public CloudBlobClient connect(final Proxy proxy, final HostKeyCallback callback, final LoginCallback prompt) throws BackgroundException {\n try {\n final StorageCredentials credentials;\n if(host.getCredentials().isTokenAuthentication()) {\n crede... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_606 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraFindFeatureTest.java",
"identifier": "SpectraFindFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindUnknownBucket() throws Exception {\n final Host host = new Host(new SpectraProtocol() {\n @Override\n public Scheme getScheme() {\n return Scheme.http;\n }\n }, System.getProperties().getProperty(\"spectra.hostname... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SpectraFindFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SpectraFindFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n final Ds3Client client = new SpectraClientBuilder().wrap(session.getClient(), session.getHost());\n if(containerService.i... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_256 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPListResponseReaderTest.java",
"identifier": "FTPListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = FTPInvalidListException.class)\n public void testDirectoryWithinSameNameLenient() throws Exception {\n // #8577\n final Path directory = new Path(\"/aaa_bbb/untitled folder\", EnumSet.of(Path.Type.directory));\n final String[] lines = new String[]{\n \"dr... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FTPListResponseReader.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FTPListResponseReader.class);",
"type": "Logger",
"var_name": "log"
},
{
"decl... | {
"body": "@Override\n public AttributedList<Path> read(final Path directory, final List<String> replies, final ListProgressListener listener) throws FTPInvalidListException {\n final AttributedList<Path> children = new AttributedList<Path>();\n // At least one entry successfully parsed\n bool... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1350 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftQuotaFeatureTest.java",
"identifier": "SwiftQuotaFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testGet() throws Exception {\n final Quota.Space quota = new SwiftQuotaFeature(session).get();\n assertNotNull(quota.available);\n assertNotNull(quota.used);\n assertNotEquals(0L, quota.available, 0L);\n assertNotEquals(0L, quota.used, 0L);\n }",... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftQuotaFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftQuotaFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator":... | {
"body": "@Override\n public Space get() throws BackgroundException {\n long used = 0L;\n try {\n for(Region region : session.getClient().getRegions()) {\n final long bytes = session.getClient().getAccountInfo(region).getBytesUsed();\n if(log.isInfoEnabled())... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_485 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java",
"identifier": "SDSDelegatingMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testMoveFromEncryptedDataRoom() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room1 = new Path(\"test\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n room1.setAt... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSDelegatingMoveFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSDelegatingMoveFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Path move(final Path source, final Path target, final TransferStatus status, final Delete.Callback callback,\n final ConnectionCallback connectionCallback) throws BackgroundException {\n if(containerService.isContainer(source)) {\n if(new SimplePa... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1429 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/GlobTransferItemFinderTest.java",
"identifier": "GlobTransferItemFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNoLocalInOptionsDownload() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--download\", \"rackspace://cdn.cyberduck.ch/remote\"});\n\n final Se... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GlobTransferItemFinder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GlobTransferItemFinder.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "... | {
"body": "@Override\n public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) throws AccessDeniedException {\n if(input.getOptionValues(action.name()).length == 2) {\n final String path = input.getOptionValues(action.name())[1];\n // This... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1079 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/DefaultIOExceptionMappingServiceTest.java",
"identifier": "DefaultIOExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPlaceholder() {\n final BackgroundException e = new DefaultIOExceptionMappingService().map(\"{0} message\", new SocketException(\"s\"),\n new Path(\"/n\", EnumSet.of(Path.Type.directory, Path.Type.volume)));\n assertEquals(\"N message.\", e.getMessage());... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/DefaultIOExceptionMappingService.java",
"identifier": "DefaultIOExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)",
... | {
"body": "public BackgroundException map(final IOException failure, final Path directory) {\n return super.map(\"Connection failed\", failure, directory);\n }",
"class_method_signature": "DefaultIOExceptionMappingService.map(final IOException failure, final Path directory)",
"constructor": false,
"fu... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1096 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/local/WorkdirPrefixerTest.java",
"identifier": "WorkdirPrefixerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNormalize() {\n assertEquals(System.getProperty(\"user.dir\") + File.separator+ \"n\", new WorkdirPrefixer().normalize(\"n\"));\n }",
"class_method_signature": "WorkdirPrefixerTest.testNormalize()",
"constructor": false,
"full_signature": "@Test public void testNo... | {
"fields": [
{
"declarator": "finder\n = WorkingDirectoryFinderFactory.get()",
"modifier": "private final",
"original_string": "private final WorkingDirectoryFinder finder\n = WorkingDirectoryFinderFactory.get();",
"type": "WorkingDirectoryFinder",
"var_name": ... | {
"body": "public String normalize(final String name) {\n if(StringUtils.equals(name, \".\")) {\n return finder.find().getAbsolute();\n }\n if(StringUtils.equals(name, \"..\")) {\n return finder.find().getParent().getAbsolute();\n }\n if(!this.isAbsolute(name))... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_939 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathNormalizerTest.java",
"identifier": "PathNormalizerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParent() {\n assertEquals(\"/\", PathNormalizer.parent(\"/p\", '/'));\n assertEquals(\"/p\", PathNormalizer.parent(\"/p/n\", '/'));\n assertNull(PathNormalizer.parent(\"/\", '/'));\n }",
"class_method_signature": "PathNormalizerTest.testParent()",
"con... | {
"fields": [
{
"declarator": "IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\")",
"modifier": "private static final",
"original_string": "private static final boolean IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\");",
"type": "boolean",
"var_n... | {
"body": "public static String parent(final String absolute, final char delimiter) {\n if(String.valueOf(delimiter).equals(absolute)) {\n return null;\n }\n int index = absolute.length() - 1;\n if(absolute.charAt(index) == delimiter) {\n if(index > 0) {\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_893 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/serializer/PathAttributesDictionaryTest.java",
"identifier": "PathAttributesDictionaryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetAsDictionary() {\n PathAttributes attributes = new PathAttributes();\n attributes.setSize(3L);\n attributes.setChecksum(Checksum.parse(\"da39a3ee5e6b4b0d3255bfef95601890afd80709\"));\n attributes.setModificationDate(5343L);\n assertEquals(att... | {
"fields": [
{
"declarator": "factory",
"modifier": "private final",
"original_string": "private final DeserializerFactory factory;",
"type": "DeserializerFactory",
"var_name": "factory"
}
],
"file": "core/src/main/java/ch/cyberduck/core/serializer/PathAttributesDictionary.j... | {
"body": "public <T> PathAttributes deserialize(T serialized) {\n final Deserializer dict = factory.create(serialized);\n final PathAttributes attributes = new PathAttributes();\n final String sizeObj = dict.stringForKey(\"Size\");\n if(sizeObj != null) {\n attributes.setSize(L... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_190 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/restore/GlacierTest.java",
"identifier": "GlacierTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testRestore() throws Exception {\n final Path bucket = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final Path test = new Path(bucket, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n final byte[] content =... | {
"fields": [
{
"declarator": "log = Logger.getLogger(Glacier.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(Glacier.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "containerService\n... | {
"body": "@Override\n public void restore(final Path file, final LoginCallback prompt) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n try {\n this.authenticated(new Authenticated<Void>() {\n @Override\n public Voi... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_387 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveQuotaFeatureTest.java",
"identifier": "DriveQuotaFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testGet() throws Exception {\n final Quota.Space quota = new DriveQuotaFeature(session).get();\n assertNotNull(quota.available);\n assertNotNull(quota.used);\n assertNotEquals(0L, quota.available, 0L);\n assertNotEquals(0L, quota.used, 0L);\n }",... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final DriveSession session;",
"type": "DriveSession",
"var_name": "session"
}
],
"file": "googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveQuotaFeature.java",
"iden... | {
"body": "@Override\n public Space get() throws BackgroundException {\n // Team Drives should not have any Quota applied.\n if (new DriveHomeFinderService(session).find().isChild(DriveHomeFinderService.TEAM_DRIVES_NAME)) {\n return new Space(0L, Long.MAX_VALUE);\n }\n\n try ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1281 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPListServiceTest.java",
"identifier": "SFTPListServiceTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testListNotfound() throws Exception {\n final Path f = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory));\n final SFTPListService service = new SFTPListService(session);\n service.list(f, new DisabledListP... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "se... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> children = new AttributedList<Path>();\n final RemoteDirectory handle = session.sftp().openDir(directory.... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_738 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/WorkspaceIconServiceTest.java",
"identifier": "WorkspaceIconServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSetProgressNoFile() {\n final WorkspaceIconService s = new WorkspaceIconService();\n final Local file = new Local(PreferencesFactory.get().getProperty(\"tmp.dir\"),\n UUID.randomUUID().toString());\n assertFalse(s.update(file, NSImage.imageWith... | {
"fields": [],
"file": "core/dylib/src/main/java/ch/cyberduck/core/local/WorkspaceIconService.java",
"identifier": "WorkspaceIconService",
"interfaces": "implements IconService",
"methods": [
{
"class_method_signature": "WorkspaceIconService.set(final Local file, final String image)",
"constr... | {
"body": "protected boolean update(final Local file, final NSImage icon) {\n synchronized(NSWorkspace.class) {\n // Specify 0 if you want to generate icons in all available icon representation formats\n final NSWorkspace workspace = NSWorkspace.sharedWorkspace();\n if(workspac... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_692 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java",
"identifier": "NSImageIconCacheTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIconForPathFolder() throws Exception {\n final Path f = new Path(new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory));\n final NSImageIconCache cache = new NSImageIconCache();\n NSImage icon = cache.fileIcon(f, 16);\n assert... | {
"fields": [
{
"declarator": "log = Logger.getLogger(NSImageIconCache.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(NSImageIconCache.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public NSImage fileIcon(final Local file, final Integer size) {\n NSImage icon = null;\n if(file.exists()) {\n icon = this.load(file.getAbsolute(), size);\n if(null == icon) {\n return this.cache(file.getName(),\n this.con... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_368 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveDirectoryFeatureTest.java",
"identifier": "DriveDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testMkdir() throws Exception {\n final DriveFileidProvider fileid = new DriveFileidProvider(session).withCache(cache).withCache(cache);\n final Path test = new DriveDirectoryFeature(session, fileid).mkdir(\n new Path(DriveHomeFinderService.MYDRIVE_FOLDER, UUI... | {
"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 mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(DriveHomeFinderService.TEAM_DRIVES_NAME.equals(folder.getParent())) {\n final TeamDrive execute = session.getClient().teamdrives()... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_942 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathNormalizerTest.java",
"identifier": "PathNormalizerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPathNormalize() {\n {\n final Path path = new Path(PathNormalizer.normalize(\n \"/path/to/remove/..\"), EnumSet.of(Path.Type.directory));\n assertEquals(\"/path/to\", path.getAbsolute());\n }\n {\n final Path pa... | {
"fields": [
{
"declarator": "IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\")",
"modifier": "private static final",
"original_string": "private static final boolean IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\");",
"type": "boolean",
"var_n... | {
"body": "public static String normalize(final String path) {\n return normalize(path, true);\n }",
"class_method_signature": "PathNormalizer.normalize(final String path)",
"constructor": false,
"full_signature": "public static String normalize(final String path)",
"identifier": "normalize",
"inv... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1147 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/CredentialsTest.java",
"identifier": "CredentialsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLoginWithoutEmptyPass() {\n Credentials credentials = new Credentials(\"guest\", \"\");\n assertTrue(credentials.validate(new TestProtocol(Scheme.ftp), new LoginOptions()));\n }",
"class_method_signature": "CredentialsTest.testLoginWithoutEmptyPass()",
"const... | {
"fields": [
{
"declarator": "user = StringUtils.EMPTY",
"modifier": "private",
"original_string": "private String user = StringUtils.EMPTY;",
"type": "String",
"var_name": "user"
},
{
"declarator": "password = StringUtils.EMPTY",
"modifier": "private",
"or... | {
"body": "public boolean validate(final Protocol protocol, final LoginOptions options) {\n return protocol.validate(this, options);\n }",
"class_method_signature": "Credentials.validate(final Protocol protocol, final LoginOptions options)",
"constructor": false,
"full_signature": "public boolean vali... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_35 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SingleUploadServiceTest.java",
"identifier": "S3SingleUploadServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testUploadSSE() throws Exception {\n final S3SingleUploadService service = new S3SingleUploadService(session, new S3WriteFeature(session, new S3DisabledMultipartService()));\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3SingleUploadService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3SingleUploadService.class);",
"type": "Logger",
"var_name": "log"
},
{
"decl... | {
"body": "@Override\n public StorageObject upload(final Path file, final Local local, final BandwidthThrottle throttle,\n final StreamListener listener, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final S3Protocol.Authenticat... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.