id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
79564911_522 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVAttributesFinderFeatureTest.java",
"identifier": "DAVAttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testFindFile() throws Exception {\n final Path test = new DAVTouchFeature(session).touch(new Path(new DefaultHomeFinderService(session).find(),\n new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)), new TransferStatus());\n final DAVAt... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVAttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVAttributesFinderFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n try {\n try {\n for(final DavResource resource : this.list(file)) {\n if(resource.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_488 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java",
"identifier": "SDSDelegatingMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testMoveDirectory() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session, nodeid).mkdir(new Path(\n new AlphanumericRandomStringService().random(), EnumSet.o... | {
"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_172 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java",
"identifier": "S3SessionTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testInteroperabilityMinio() throws Exception {\n final Host host = new Host(new S3Protocol(), \"play.minio.io\", 9000, new Credentials(\n \"Q3AM3UQ867SPQQA43P2F\", \"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG\"\n ));\n final S3Session session = new S3Ses... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3Session.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3Session.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences\n ... | {
"body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n if(Scheme.isURL(host.getProtocol().getContext())) {\n try {\n final Credentials temporary = new AWSSessionCredentialsRetriever(trust, ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_467 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSSessionTest.java",
"identifier": "SDSSessionTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test(expected = LoginCanceledException.class)\n public void testLoginOAuthExpiredRefreshToken() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new SDSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "SDS_AUTH_TOK... | {
"body": "@Override\n public void login(final Proxy proxy, final LoginCallback controller, final CancelCallback cancel) throws BackgroundException {\n final SoftwareVersionData version = this.softwareVersion();\n final Matcher matcher = Pattern.compile(VERSION_REGEX).matcher(version.getRestApiVersio... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_43 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipartUploadServiceTest.java",
"identifier": "S3MultipartUploadServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testAppendSecondPart() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final String name = UUID.randomUUID().toString();\n final Path test = new Path(container, name, EnumSet... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3MultipartUploadService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3MultipartUploadService.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public StorageObject upload(final Path file, final Local local, final BandwidthThrottle throttle, final StreamListener listener,\n final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final ThreadPool pool = Thre... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1131 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/BookmarkCollectionTest.java",
"identifier": "BookmarkCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLoadAwaitFilesystemChange() throws Exception {\n final Local source = new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n final CountDownLatch wait = new CountDownLatch(1);\n final BookmarkCollection collection = new BookmarkCol... | {
"fields": [
{
"declarator": "log = Logger.getLogger(BookmarkCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(BookmarkCollection.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public void collectionItemAdded(final Host bookmark) {\n try {\n if(this.isLocked()) {\n log.debug(\"Skip indexing collection while loading\");\n }\n else {\n this.index();\n }\n }\n finally {\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_934 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/MonitorFolderHostCollectionTest.java",
"identifier": "MonitorFolderHostCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLoad() throws Exception {\n final Local source = new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n final MonitorFolderHostCollection c = new MonitorFolderHostCollection(source);\n c.load();\n final Host bookmark = new H... | {
"fields": [
{
"declarator": "log = Logger.getLogger(MonitorFolderHostCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(MonitorFolderHostCollection.class);",
"type": "Logger",
"var_name": "log"
},
{... | {
"body": "@Override\n public void load() throws AccessDeniedException {\n super.load();\n if(preferences.getBoolean(\"bookmarks.folder.monitor\")) {\n try {\n monitor.register(folder, FILE_FILTER, this);\n }\n catch(IOException e) {\n th... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_719 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/importer/Transmit5BookmarkCollectionTest.java",
"identifier": "Transmit5BookmarkCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParse() throws AccessDeniedException {\n Transmit5BookmarkCollection c = new Transmit5BookmarkCollection();\n assertEquals(0, c.size());\n c.parse(new ProtocolFactory(new HashSet<>(Collections.singletonList(new TestProtocol(Scheme.sftp)))), new Local(\"src/te... | {
"fields": [
{
"declarator": "log = Logger.getLogger(Transmit5BookmarkCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(Transmit5BookmarkCollection.class);",
"type": "Logger",
"var_name": "log"
},
{... | {
"body": "@Override\n protected void parse(final ProtocolFactory protocols, final Local folder) throws AccessDeniedException {\n for(Local f : folder.list().filter(new NullFilter<Local>() {\n @Override\n public boolean accept(Local file) {\n if(file.isFile()) {\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_349 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalSymlinkFeatureTest.java",
"identifier": "LocalSymlinkFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSymlink() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n assumeTrue(session.isPosixFilesystem());\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new D... | {
"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/LocalSymlinkFeature.java",
"identifier": "Loca... | {
"body": "@Override\n public void symlink(final Path file, final String target) throws BackgroundException {\n try {\n Files.createSymbolicLink(session.toPath(file), session.toPath(target));\n }\n catch(IOException e) {\n throw new LocalExceptionMappingService().map(\"Ca... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_125 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3BucketListServiceTest.java",
"identifier": "S3BucketListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testGetContainer() {\n assertEquals(\"bucketname\", new S3BucketListService(new S3Session(new Host(new S3Protocol()))).getContainer(new Host(new S3Protocol(), \"bucketname.s3.amazonaws.com\")));\n assertNull(new S3BucketListService(new S3Session(new Host(new S3Protocol(... | {
"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": "protected String getContainer(final Host host) {\n if(StringUtils.isBlank(host.getProtocol().getDefaultHostname())) {\n return null;\n }\n final String hostname = host.getHostname();\n if(hostname.equals(host.getProtocol().getDefaultHostname())) {\n return ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_575 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVQuotaFeatureTest.java",
"identifier": "DAVQuotaFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testGetRepository() throws Exception {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.ch\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n final DAVSession session = new DAVSess... | {
"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/DAVQuotaFeature.java",
"identifier": "DAVQuotaF... | {
"body": "@Override\n public Space get() throws BackgroundException {\n final Path home = new DefaultHomeFinderService(session).find();\n try {\n final DavQuota quota = session.getClient().getQuota(new DAVPathEncoder().encode(home));\n return new Space(\n quota.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_1473 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxLockFeatureTest.java",
"identifier": "DropboxLockFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test\n public void testLockNotShared() throws Exception {\n final DropboxTouchFeature touch = new DropboxTouchFeature(session);\n final Path file = touch.touch(new Path(new DropboxHomeFinderFeature(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DropboxSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DropboxSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public String lock(final Path file) throws BackgroundException {\n if(!containerService.getContainer(file).getType().contains(Path.Type.shared)) {\n log.warn(String.format(\"Skip attempting to lock file %s not in shared folder\", file));\n throw new UnsupportedEx... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_826 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/LoginConnectionServiceTest.java",
"identifier": "LoginConnectionServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ConnectionCanceledException.class)\n public void testNoHostname() throws Exception {\n final LoginConnectionService s = new LoginConnectionService(new DisabledLoginCallback(), new DisabledHostKeyCallback(), new DisabledPasswordStore(),\n new DisabledProgressListener())... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LoginConnectionService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LoginConnectionService.class);",
"type": "Logger",
"var_name": "log"
},
{
"de... | {
"body": "@Override\n public boolean check(final Session<?> session, final Cache<Path> cache, final CancelCallback callback) throws BackgroundException {\n final Host bookmark = session.getHost();\n if(bookmark.getProtocol().isHostnameConfigurable() && StringUtils.isBlank(bookmark.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_1189 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageMoveFeatureTest.java",
"identifier": "GoogleStorageMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testSupport() {\n final Path c = new Path(\"/c\", EnumSet.of(Path.Type.directory));\n assertFalse(new GoogleStorageMoveFeature(null).isSupported(c, c));\n final Path cf = new Path(\"/c/f\", EnumSet.of(Path.Type.directory));\n assertTrue(new GoogleStorageMo... | {
"fields": [
{
"declarator": "containerService\n = new GoogleStoragePathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new GoogleStoragePathContainerService();",
"type": "PathContainerService",
... | {
"body": "@Override\n public boolean isSupported(final Path source, final Path target) {\n return !containerService.isContainer(source);\n }",
"class_method_signature": "GoogleStorageMoveFeature.isSupported(final Path source, final Path target)",
"constructor": false,
"full_signature": "@Override ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1023 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/DownloadTransferTest.java",
"identifier": "DownloadTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testListSorted() throws Exception {\n final Path root = new Path(\"/t\", EnumSet.of(Path.Type.directory));\n final NullSession session = new NullSession(new Host(new TestProtocol())) {\n @Override\n public AttributedList<Path> list(final Path file,... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DownloadTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DownloadTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public List<TransferItem> list(final Session<?> session, final Path directory,\n final Local local, final ListProgressListener listener) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"List children for... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_963 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathTest.java",
"identifier": "PathTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDictionaryDirectory() {\n Path path = new Path(\"/path\", EnumSet.of(Path.Type.directory));\n assertEquals(path, new PathDictionary().deserialize(path.serialize(SerializerFactory.get())));\n }",
"class_method_signature": "PathTest.testDictionaryDirectory()",
... | {
"fields": [
{
"declarator": "DELIMITER = '/'",
"modifier": "public static final",
"original_string": "public static final char DELIMITER = '/';",
"type": "char",
"var_name": "DELIMITER"
},
{
"declarator": "parent",
"modifier": "protected",
"original_string... | {
"body": "@Override\n public <T> T serialize(final Serializer dict) {\n dict.setStringForKey(String.valueOf(type), \"Type\");\n dict.setStringForKey(this.getAbsolute(), \"Remote\");\n if(symlink != null) {\n dict.setObjectForKey(symlink, \"Symbolic Link\");\n }\n dict... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1166 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/URIEncoderTest.java",
"identifier": "URIEncoderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEncodeHash() {\n assertEquals(\"file%23\", URIEncoder.encode(\"file#\"));\n }",
"class_method_signature": "URIEncoderTest.testEncodeHash()",
"constructor": false,
"full_signature": "@Test public void testEncodeHash()",
"identifier": "testEncodeHash",
"invocati... | {
"fields": [
{
"declarator": "log = Logger.getLogger(URIEncoder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(URIEncoder.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "core/src/main/java/ch/cy... | {
"body": "public static String encode(final String input) {\n try {\n final StringBuilder b = new StringBuilder();\n final StringTokenizer t = new StringTokenizer(input, \"/\");\n if(!t.hasMoreTokens()) {\n return input;\n }\n if(StringUtil... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_14 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3UrlProviderTest.java",
"identifier": "S3UrlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testProviderUriWithKey() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname()));\n final Iterator<DescriptiveUrl> provider = new S3UrlProvider(session).toUrl(new Path(\"/test-us-east-1-cyberduck/key\",\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_430 | {
"fields": [],
"file": "manta/src/test/java/ch/cyberduck/core/manta/MantaAttributesFinderFeatureTest.java",
"identifier": "MantaAttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractMantaTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testFindNotFound() throws Exception {\n try {\n new MantaAttributesFinderFeature(session).find(randomFile());\n }\n catch(NotfoundException e) {\n assertEquals(\"Not Found. Please contact your web hosting ... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final MantaSession session;",
"type": "MantaSession",
"var_name": "session"
}
],
"file": "manta/src/main/java/ch/cyberduck/core/manta/MantaAttributesFinderFeature.java",
"ident... | {
"body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n try {\n return new MantaObjectAttributeAdapter(session)\n .convert(session.getClient().head(file.getAb... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1259 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2DeleteFeatureTest.java",
"identifier": "B2DeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testDeleteNotFound() throws Exception {\n final Path test = new Path(new B2HomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n new B2DeleteFeature(session, new B2FileidProvider(session).with... | {
"fields": [
{
"declarator": "log = Logger.getLogger(B2DeleteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(B2DeleteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "co... | {
"body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n for(Path file : files.keySet()) {\n if(containerService.isContainer(file)) {\n continue;\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_1035 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/SyncTransferTest.java",
"identifier": "SyncTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilterUpload() throws Exception {\n final Path p = new Path(\"t\", EnumSet.of(Path.Type.directory));\n Transfer t = new SyncTransfer(new Host(new TestProtocol()), new TransferItem(p, new NullLocal(System.getProperty(\"java.io.tmpdir\"), \"t\")));\n final Null... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SyncTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SyncTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "upload",... | {
"body": "@Override\n public TransferPathFilter filter(final Session<?> source, final Session<?> destination, final TransferAction action, final ProgressListener listener) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Filter transfer with action %s\", action));\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_830 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/proxy/DefaultProxyFinderTest.java",
"identifier": "DefaultProxyFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testExcludedLocalHost() {\n final DefaultProxyFinder proxy = new DefaultProxyFinder();\n assertEquals(Proxy.Type.DIRECT, proxy.find(new Host(new TestProtocol(), \"cyberduck.local\")).getType());\n }",
"class_method_signature": "DefaultProxyFinderTest.testExcludedLo... | {
"fields": [
{
"declarator": "selector\n = ProxySelector.getDefault()",
"modifier": "private final",
"original_string": "private final ProxySelector selector\n = ProxySelector.getDefault();",
"type": "ProxySelector",
"var_name": "selector"
},
{
"d... | {
"body": "@Override\n public Proxy find(final Host target) {\n if(!preferences.getBoolean(\"connection.proxy.enable\")) {\n return Proxy.DIRECT;\n }\n for(java.net.Proxy proxy : selector.select(URI.create(provider.get(target)))) {\n switch(proxy.type()) {\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_1465 | {
"fields": [],
"file": "onedrive/src/test/java/ch/cyberduck/core/onedrive/SharepointListServiceTest.java",
"identifier": "SharepointListServiceTest",
"interfaces": "",
"superclass": "extends AbstractSharepointTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testNotFound() throws Exception {\n final Path directory = new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory));\n new SharepointListService(session, n... | {
"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_563 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVSessionTest.java",
"identifier": "DAVSessionTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n @Ignore\n public void testConnectProxy() throws Throwable {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.io\");\n final AtomicBoolean verified = new AtomicBoolean();\n final DAVSession session = new DAVSession(host, new DefaultX509TrustManager() {\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVSession.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVSession.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "redirect\n ... | {
"body": "@Override\n public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException {\n // Always inject new pool to builder on connect because the pool is shutdown on disconnect\n final HttpClientBuilder pool = builder.build(proxy, thi... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_133 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3StorageClassFeatureTest.java",
"identifier": "S3StorageClassFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testNotFound() throws Exception {\n final Path container = new Path(\"versioning-test-us-east-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.of(Path.Type.fil... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final S3Session session;",
"type": "S3Session",
"var_name": "session"
},
{
"declarator": "preferences = PreferencesFactory.get()",
"modifier": "private final",
... | {
"body": "@Override\n public String getClass(final Path file) throws BackgroundException {\n if(containerService.isContainer(file)) {\n final String key = String.format(\"s3.storageclass.%s\", containerService.getContainer(file).getName());\n if(StringUtils.isNotBlank(preferences.getP... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_426 | {
"fields": [
{
"declarator": "TYPE_DIRECTORY = EnumSet.of(AbstractPath.Type.directory)",
"modifier": "private static final",
"original_string": "private static final EnumSet<Path.Type> TYPE_DIRECTORY = EnumSet.of(AbstractPath.Type.directory);",
"type": "EnumSet<Path.Type>",
"var_nam... | {
"body": "@Test\n public void testSearchSameDirectory() throws Exception {\n Assume.assumeTrue(session.getClient().existsAndIsAccessible(testPathPrefix.getAbsolute()));\n\n final String newDirectoryName = new AlphanumericRandomStringService().random();\n final Path newDirectory = new Path(tes... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final MantaSession session;",
"type": "MantaSession",
"var_name": "session"
},
{
"declarator": "adapter",
"modifier": "private final",
"original_string": "priva... | {
"body": "@Override\n public AttributedList<Path> search(final Path workdir,\n final Filter<Path> regex,\n final ListProgressListener listener) throws BackgroundException {\n final AttributedList<Path> list = new AttributedList<>()... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1170 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PermissionTest.java",
"identifier": "PermissionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSymbol() {\n Permission p1 = new Permission(777);\n assertEquals(\"rwxrwxrwx\", p1.getSymbol());\n Permission p2 = new Permission(666);\n assertEquals(\"rw-rw-rw-\", p2.getSymbol());\n }",
"class_method_signature": "PermissionTest.testSymbol()",
... | {
"fields": [
{
"declarator": "EMPTY = new Permission(Action.none, Action.none, Action.none) {\n @Override\n public boolean isExecutable() {\n return true;\n }\n\n @Override\n public boolean isReadable() {\n return true;\n }\n\n @Overrid... | {
"body": "public String getSymbol() {\n final StringBuilder symbolic = new StringBuilder();\n symbolic.append(setuid ? user.implies(Action.execute) ?\n StringUtils.substring(user.symbolic, 0, 2) + \"s\" : StringUtils.substring(user.symbolic, 0, 2) + \"S\" :\n user.symbolic);\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_975 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java",
"identifier": "HostParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void parseNonConfigurableEmptyURL() throws HostParserException {\n final Host host = new HostParser(new ProtocolFactory(Collections.singleton(new TestProtocol(Scheme.https) {\n @Override\n public String getDefaultHostname() {\n return \"host\";\... | {
"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_758 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/WorkspaceTrashFeatureTest.java",
"identifier": "WorkspaceTrashFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTrashRepeated() throws Exception {\n final WorkspaceTrashFeature f = new WorkspaceTrashFeature();\n Local l = new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n new DefaultLocalTouchFeature().touch(l);\n assertTrue(l.exi... | {
"fields": [
{
"declarator": "log = Logger.getLogger(WorkspaceTrashFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(WorkspaceTrashFeature.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "co... | {
"body": "@Override\n public void trash(final Local file) throws LocalAccessDeniedException {\n synchronized(NSWorkspace.class) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Move %s to Trash\", file));\n }\n final NSWorkspace workspace = NSWorksp... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_308 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureReadFeatureTest.java",
"identifier": "AzureReadFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() 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().g... | {
"fields": [
{
"declarator": "log = Logger.getLogger(AzureReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(AzureReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final CloudBlob blob = session.getClient().getContainerReference(containerService.getContainer(file).getName())\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_164 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java",
"identifier": "S3SessionTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = BackgroundException.class)\n public void testCustomHostnameUnknown() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new S3Protocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3Session.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3Session.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences\n ... | {
"body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n if(Scheme.isURL(host.getProtocol().getContext())) {\n try {\n final Credentials temporary = new AWSSessionCredentialsRetriever(trust, ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_534 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVWriteFeatureTest.java",
"identifier": "DAVWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n @Ignore\n public void testWriteRangeEndFirst() throws Exception {\n final DAVWriteFeature feature = new DAVWriteFeature(session);\n final Path test = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final byte[] content = RandomUtils.nextBytes(2048);\... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVWriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVWriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "se... | {
"body": "@Override\n public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final List<Header> headers = this.getHeaders(file, status);\n return this.write(file, headers, status);\n }",
"clas... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_867 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/aquaticprime/ReceiptFactoryTest.java",
"identifier": "ReceiptFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testOpenDirectory() throws Exception {\n assertEquals(1, new ReceiptFactory(new Local(\"/Applications/Cyberduck.app/Contents/_MASReceipt\")).open().size());\n }",
"class_method_signature": "ReceiptFactoryTest.testOpenDirectory()",
"constructor": false,
"full_signature... | {
"fields": [
{
"declarator": "log = Logger.getLogger(ReceiptFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(ReceiptFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "APPS... | {
"body": "@Override\n protected License open(final Local file) {\n // Verify immediately and exit if not a valid receipt\n final ReceiptVerifier verifier = new ReceiptVerifier(file);\n if(verifier.verify(new DisabledLicenseVerifierCallback())) {\n // Set name\n final Rec... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1432 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/DeletePathFinderTest.java",
"identifier": "DeletePathFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindDirectory() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--delete\", \"rackspace://cdn.cyberduck.ch/remote\"});\n\n assertTrue(new Delete... | {
"fields": [],
"file": "cli/src/main/java/ch/cyberduck/cli/DeletePathFinder.java",
"identifier": "DeletePathFinder",
"interfaces": "implements TransferItemFinder",
"methods": [
{
"class_method_signature": "DeletePathFinder.find(final CommandLine input, final TerminalAction action, final Path remote... | {
"body": "@Override\n public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) {\n if(StringUtils.containsAny(remote.getName(), '*')) {\n // Treat asterisk as wildcard\n return Collections.singleton(new TransferItem(remote.getParent()));\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_1062 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/download/ResumeFilterTest.java",
"identifier": "ResumeFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPrepareDirectoryExists() throws Exception {\n final NullSession session = new NullTransferSession(new Host(new TestProtocol()));\n ResumeFilter f = new ResumeFilter(new DisabledDownloadSymlinkResolver(), session,\n new DownloadFilterOptions(), new Def... | {
"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 TransferStatus prepare(final Path file, final Local local, final TransferStatus parent, final ProgressListener progress) throws BackgroundException {\n final TransferStatus status = super.prepare(file, local, parent, progress);\n if(status.isSegmented()) {\n f... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_922 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/MoveWorkerTest.java",
"identifier": "MoveWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompile() throws Exception {\n final Session session = new NullSession(new Host(new TestProtocol())) {\n @Override\n @SuppressWarnings(\"unchecked\")\n public <T> T _getFeature(final Class<T> type) {\n if(type == Delete.class... | {
"fields": [
{
"declarator": "log = Logger.getLogger(MoveWorker.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(MoveWorker.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "files",
... | {
"body": "protected Map<Path, Path> compile(final Move move, final ListService list, final Path source, final Path target) throws BackgroundException {\n // Compile recursive list\n final Map<Path, Path> recursive = new LinkedHashMap<>();\n recursive.put(source, target);\n if(source.isDir... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_888 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/serializer/TransferDictionaryTest.java",
"identifier": "TransferDictionaryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSerializeUploadTransfer() {\n final Path test = new Path(\"t\", EnumSet.of(Path.Type.file));\n Transfer t = new UploadTransfer(new Host(new TestProtocol(), \"t\"), test,\n new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString())... | {
"fields": [
{
"declarator": "log = Logger.getLogger(TransferDictionary.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(TransferDictionary.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "public <T> Transfer deserialize(final T serialized) {\n final Deserializer dict = factory.create(serialized);\n final Object hostObj = dict.objectForKey(\"Host\");\n if(null == hostObj) {\n log.warn(\"Missing host in transfer\");\n return null;\n }\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1127 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/SimplePathPredicateTest.java",
"identifier": "SimplePathPredicateTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPredicateTest() {\n final Path t = new Path(\"/f\", EnumSet.of(Path.Type.file));\n assertTrue(new SimplePathPredicate(t).test(new Path(\"/f\", EnumSet.of(Path.Type.file))));\n assertFalse(new SimplePathPredicate(t).test(new Path(\"/f/a\", EnumSet.of(Path.Type... | {
"fields": [
{
"declarator": "normalizer = new NFCNormalizer()",
"modifier": "private static final",
"original_string": "private static final UnicodeNormalizer normalizer = new NFCNormalizer();",
"type": "UnicodeNormalizer",
"var_name": "normalizer"
},
{
"declarator": ... | {
"body": "@Override\n public boolean test(final Path test) {\n return this.equals(new SimplePathPredicate(test));\n }",
"class_method_signature": "SimplePathPredicate.test(final Path test)",
"constructor": false,
"full_signature": "@Override public boolean test(final Path test)",
"identifier": "... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_55 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ExceptionMappingServiceTest.java",
"identifier": "S3ExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAlgorithmFailure() {\n assertEquals(\"EC AlgorithmParameters not available. Please contact your web hosting service provider for assistance.\",\n new S3ExceptionMappingService().map(new S3ServiceException(\n new SSLException(\n ... | {
"fields": [],
"file": "s3/src/main/java/ch/cyberduck/core/s3/S3ExceptionMappingService.java",
"identifier": "S3ExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "S3ExceptionMappingService.map(final ServiceException e)",
"constructor": false,
"full_sig... | {
"body": "@Override\n public BackgroundException map(final ServiceException e) {\n if(e.getCause() instanceof ServiceException) {\n return this.map((ServiceException) e.getCause());\n }\n final StringBuilder buffer = new StringBuilder();\n if(StringUtils.isNotBlank(e.getErro... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_471 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSFindFeatureTest.java",
"identifier": "SDSFindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testFind() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n assertTrue(new SDSFindFeature(nodeid).find(new DefaultHomeFinderService(session).find()));\n assertFalse(new SDSFindFeature(nodeid).find(\n ... | {
"fields": [
{
"declarator": "nodeid",
"modifier": "private final",
"original_string": "private final SDSNodeIdProvider nodeid;",
"type": "SDSNodeIdProvider",
"var_name": "nodeid"
}
],
"file": "dracoon/src/main/java/ch/cyberduck/core/sds/SDSFindFeature.java",
"identifier":... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n try {\n nodeid.getFileid(file, new DisabledListProgressListener());\n return true;\n }\n catch(NotfoundException e) {\n return false;\n }\n }",
"class_method_... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1205 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageCopyFeatureTest.java",
"identifier": "GoogleStorageCopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testCopyFileZeroLength() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(container, new AsciiRandomStringService().random(), EnumSet.of(Path.Type.file));\n ... | {
"fields": [
{
"declarator": "containerService\n = new GoogleStoragePathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new GoogleStoragePathContainerService();",
"type": "PathContainerService",
... | {
"body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final StorageObject object = session.getClient().objects().copy(containerService.getContainer(source).getName(), 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_303 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureCopyFeatureTest.java",
"identifier": "AzureCopyFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCopy() 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(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_753 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java",
"identifier": "FinderLocalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMoveFolder() throws Exception {\n final String name = UUID.randomUUID().toString();\n final String newname = UUID.randomUUID().toString();\n new DefaultLocalDirectoryFeature().mkdir(new FinderLocal(name));\n new FinderLocal(name).rename(new FinderLocal... | {
"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_246 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPListResponseReaderTest.java",
"identifier": "FTPListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseSymbolicLink() throws Exception {\n Path path = new Path(\"/\", EnumSet.of(Path.Type.directory));\n assertEquals(\"/\", path.getName());\n assertEquals(\"/\", path.getAbsolute());\n\n final AttributedList<Path> list = new FTPListResponseReader(new... | {
"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_616 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraDirectoryFeatureTest.java",
"identifier": "SpectraDirectoryFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreatePlaceholder() 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": "containerService\n = new S3PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new S3PathContainerService();",
"type": "PathContainerService",
"var_name": "conta... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n if(containerService.isContainer(folder)) {\n return super.mkdir(folder, region, status);\n }\n else {\n status.setChecksum(writer.c... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1340 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftObjectListServiceTest.java",
"identifier": "SwiftObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testListPlaceholder() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path placeholder = new SwiftDirectoryFeature(session).mkdir(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"de... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> children = new AttributedList<Path>();\n final int limit = PreferencesFactory.get().getInteger(\"openstac... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_495 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSReadFeatureTest.java",
"identifier": "SDSReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testReadInterrupt() throws Exception {\n final byte[] content = RandomUtils.nextBytes(32769);\n final TransferStatus writeStatus = new TransferStatus();\n writeStatus.setLength(content.length);\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(sessi... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final SDSApiClient client = session.getClient();\n final HttpUriRequest request = new HttpGet(String.format(\"%s/v4/nod... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1069 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/download/SkipFilterTest.java",
"identifier": "SkipFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAccept() throws Exception {\n SkipFilter f = new SkipFilter(new DisabledDownloadSymlinkResolver(), new NullSession(new Host(new TestProtocol())));\n assertTrue(f.accept(new Path(\"a\", EnumSet.of(Path.Type.file)) {\n }, new NullLocal(\"a\"... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SkipFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SkipFilter.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "core/src/main/java/ch/cy... | {
"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 if(log.isInfoEnabled()) {\n log.info(String.format(\"Skip file %s\", file));... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1439 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/TerminalStreamListenerTest.java",
"identifier": "TerminalStreamListenerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRecv() {\n final DownloadTransfer transfer = new DownloadTransfer(new Host(new TestProtocol()), Collections.<TransferItem>emptyList());\n final TerminalStreamListener l = new TerminalStreamListener(new TransferSpeedometer(transfer));\n l.recv(1L);\n tr... | {
"fields": [
{
"declarator": "meter",
"modifier": "private final",
"original_string": "private final TransferSpeedometer meter;",
"type": "TransferSpeedometer",
"var_name": "meter"
},
{
"declarator": "console = new Console()",
"modifier": "private final",
"... | {
"body": "@Override\n public void recv(final long bytes) {\n this.increment();\n }",
"class_method_signature": "TerminalStreamListener.recv(final long bytes)",
"constructor": false,
"full_signature": "@Override public void recv(final long bytes)",
"identifier": "recv",
"invocations": [
"in... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_883 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/shared/DefaultHomeFinderServiceTest.java",
"identifier": "DefaultHomeFinderServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDefaultLocalPathDriveLetter() {\n assertEquals(new Path(\"/C:/Users/example/Documents/vault\", EnumSet.of(Path.Type.directory)),\n new DefaultHomeFinderService(null).find(new Path(\"/\", EnumSet.of(Path.Type.directory)), \"C:/Users/example/Documents/vault\"));\n... | {
"fields": [
{
"declarator": "DEFAULT_HOME = new Path(String.valueOf(Path.DELIMITER),\n EnumSet.of(Path.Type.volume, Path.Type.directory))",
"modifier": "protected final",
"original_string": "protected final Path DEFAULT_HOME = new Path(String.valueOf(Path.DELIMITER),\n EnumSet.of... | {
"body": "@Override\n public Path find() throws BackgroundException {\n final Host host = session.getHost();\n if(host.getWorkdir() != null) {\n return new PathDictionary().deserialize(host.getWorkdir().serialize(SerializerFactory.get()));\n }\n else {\n final Str... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1086 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/editor/AbstractEditorTest.java",
"identifier": "AbstractEditorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testOpen() throws Exception {\n final AtomicBoolean t = new AtomicBoolean();\n final NullSession session = new NullTransferSession(new Host(new TestProtocol())) {\n @Override\n @SuppressWarnings(\"unchecked\")\n public <T> T _getFeature(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(AbstractEditor.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(AbstractEditor.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "modi... | {
"body": "@Override\n public Worker<Transfer> open(final ApplicationQuitCallback quit, final TransferErrorCallback error, final FileWatcherListener listener) {\n final Worker<Transfer> worker = new EditOpenWorker(session.getHost(), this, error,\n new ApplicationQuitCallback() {\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_929 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/WriteMetadataWorkerTest.java",
"identifier": "WriteMetadataWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRunDifferent() throws Exception {\n final PathAttributes attributesA = new PathAttributes();\n {\n final Map<String, String> map = new HashMap<String, String>();\n map.put(\"equal\", \"equal\");\n map.put(\"different\", \"diff1\");\n... | {
"fields": [
{
"declarator": "log = Logger.getLogger(WriteMetadataWorker.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(WriteMetadataWorker.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public Boolean run(final Session<?> session) throws BackgroundException {\n final Metadata feature = session.getFeature(Metadata.class);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Run with feature %s\", feature));\n }\n for(Path file : 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_180 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SearchFeatureTest.java",
"identifier": "S3SearchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testSearchInDirectory() throws Exception {\n final Path workdir = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n workdir.attributes().setRegion(\"us-east-1\");\n final String name = new AlphanumericRandomStringService... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final S3Session session;",
"type": "S3Session",
"var_name": "session"
}
],
"file": "s3/src/main/java/ch/cyberduck/core/s3/S3SearchFeature.java",
"identifier": "S3SearchFeature"... | {
"body": "@Override\n public AttributedList<Path> search(final Path workdir, final Filter<Path> regex, final ListProgressListener listener) throws BackgroundException {\n final AttributedList<Path> objects;\n try {\n objects = new S3ObjectListService(session).list(workdir, listener, null,... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_704 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/io/watchservice/FSEventWatchServiceTest.java",
"identifier": "FSEventWatchServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore\n public void testListener() throws Exception {\n final FileWatcher watcher = new FileWatcher(new FSEventWatchService());\n final Local file = LocalFactory.get(LocalFactory.get(System.getProperty(\"java.io.tmpdir\")), String.format(\"é%s\", new AlphanumericRandomStringSe... | {
"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_354 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalListServiceTest.java",
"identifier": "LocalListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testListNotfound() 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": "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_1252 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2LargeUploadPartServiceTest.java",
"identifier": "B2LargeUploadPartServiceTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testFindAllPendingInBucket() 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 B2Fileid... | {
"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 List<B2FileInfoResponse> find(final Path file) throws BackgroundException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Finding multipart uploads for %s\", file));\n }\n try {\n final List<B2FileInfoResponse> uploads = new ArrayList<B2FileInfoR... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1317 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPExceptionMappingServiceTest.java",
"identifier": "SFTPExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSocketTimeout() {\n assertEquals(ConnectionTimeoutException.class, new SFTPExceptionMappingService()\n .map(new SocketTimeoutException()).getClass());\n assertEquals(ConnectionTimeoutException.class, new SFTPExceptionMappingService()\n .map(\"m... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPExceptionMappingService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPExceptionMappingService.class);",
"type": "Logger",
"var_name": "log"
}
],
... | {
"body": "@Override\n public BackgroundException map(final IOException e) {\n if(ExceptionUtils.getRootCause(e) != e && ExceptionUtils.getRootCause(e) instanceof SSHException) {\n return this.map((SSHException) ExceptionUtils.getRootCause(e));\n }\n final StringBuilder buffer = new... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_7 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3TouchFeatureTest.java",
"identifier": "S3TouchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testFile() {\n final S3Session session = new S3Session(new Host(new S3Protocol(), \"h\"));\n assertFalse(new S3TouchFeature(session).isSupported(new Path(\"/\", EnumSet.of(Path.Type.volume)), StringUtils.EMPTY));\n assertTrue(new S3TouchFeature(session).isSupport... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final S3Session session;",
"type": "S3Session",
"var_name": "session"
},
{
"declarator": "writer",
"modifier": "private",
"original_string": "private Write<Stor... | {
"body": "@Override\n public 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": "S3TouchFeature.isSupported(final Path workdir, final String filename)",
"constructor... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_641 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSAttributesFinderFeatureTest.java",
"identifier": "IRODSAttributesFinderFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testFindNotFound() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new L... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final IRODSSession session;",
"type": "IRODSSession",
"var_name": "session"
}
],
"file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSAttributesFinderFeature.java",
"ident... | {
"body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n try {\n final IRODSFileSystemAO fs = session.getClient();\n final IRODSFile f = fs.getIRODSFileFactory().instanceIRODSFile(file.getAbsolute());\n if(!f.exists()) {\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_211 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/cloudfront/CustomOriginCloudFrontDistributionConfigurationTest.java",
"identifier": "CustomOriginCloudFrontDistributionConfigurationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = LoginCanceledException.class)\n public void testReadMissingCredentials() throws Exception {\n final Host bookmark = new Host(new TestProtocol(), \"myhost.localdomain\");\n final CustomOriginCloudFrontDistributionConfiguration configuration\n = new CustomOriginCl... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CustomOriginCloudFrontDistributionConfiguration.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CustomOriginCloudFrontDistributionConfiguration.class);",
"type": "Logge... | {
"body": "@Override\n public Distribution read(final Path file, final Distribution.Method method, final LoginCallback prompt) throws BackgroundException {\n final Distribution distribution = this.connected(new Connected<Distribution>() {\n @Override\n public Distribution call() throws... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1194 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageStorageClassFeatureTest.java",
"identifier": "GoogleStorageStorageClassFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testGetClasses() {\n assertArrayEquals(Arrays.asList(\n \"STANDARD\",\n \"MULTI_REGIONAL\",\n \"REGIONAL\",\n \"NEARLINE\",\n \"COLDLINE\").toArray(),\n new GoogleStorageStorageClassFeature(session).getClasses()... | {
"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 Set<String> getClasses() {\n return new LinkedHashSet<>(Arrays.asList(\n S3Object.STORAGE_CLASS_STANDARD,\n \"MULTI_REGIONAL\",\n \"REGIONAL\",\n \"NEARLINE\",\n \"COLDLINE\")\n );\n }",
"class_method_signature"... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_991 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/pasteboard/PathPasteboardFactoryTest.java",
"identifier": "PathPasteboardFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetPasteboard() {\n final Host s = new Host(new TestProtocol(Scheme.ftp), \"l\");\n final PathPasteboard pasteboard = PathPasteboardFactory.getPasteboard(s);\n assertNotNull(pasteboard);\n assertEquals(pasteboard, PathPasteboardFactory.getPasteboard(s)... | {
"fields": [
{
"declarator": "pasteboards\n = new HashMap<Host, PathPasteboard>()",
"modifier": "private static final",
"original_string": "private static final Map<Host, PathPasteboard> pasteboards\n = new HashMap<Host, PathPasteboard>();",
"type": "Map<Host, PathPa... | {
"body": "public static PathPasteboard getPasteboard(final Host bookmark) {\n if(null == bookmark) {\n return null;\n }\n if(!pasteboards.containsKey(bookmark)) {\n pasteboards.put(bookmark, new PathPasteboard(bookmark));\n }\n return pasteboards.get(bookmark)... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_138 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3AttributesFinderFeatureTest.java",
"identifier": "S3AttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testFindPlaceholder() 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 S3DirectoryFeature(session, new S3WriteFeature(session, new S3DisabledMultipartService())... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3AttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3AttributesFinderFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public PathAttributes find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return PathAttributes.EMPTY;\n }\n if(file.getType().contains(Path.Type.upload)) {\n // Pending multipart upload\n return PathAttributes.EMPT... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_568 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVListServiceTest.java",
"identifier": "DAVListServiceTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testListFileException() throws Exception {\n final Host host = new Host(new DAVSSLProtocol(), \"svn.cyberduck.ch\", new Credentials(\n PreferencesFactory.get().getProperty(\"connection.login.anon.name\"), null\n ));\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> children = new AttributedList<Path>();\n for(final DavResource resource : this.list(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_587 | {
"fields": [],
"file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/features/CryptoBulkFeatureTest.java",
"identifier": "CryptoBulkFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPost() throws Exception {\n final Path vault = new Path(\"/vault\", EnumSet.of(Path.Type.directory));\n final NullSession session = new NullSession(new Host(new TestProtocol())) {\n @Override\n @SuppressWarnings(\"unchecked\")\n publ... | {
"fields": [
{
"declarator": "random\n = new UUIDRandomStringService()",
"modifier": "private final",
"original_string": "private final RandomStringService random\n = new UUIDRandomStringService();",
"type": "RandomStringService",
"var_name": "random"
},
{
... | {
"body": "@Override\n public void post(final Transfer.Type type, final Map<TransferItem, TransferStatus> files, final ConnectionCallback callback) throws BackgroundException {\n final Map<TransferItem, TransferStatus> encrypted = new HashMap<>(files.size());\n for(Map.Entry<TransferItem, TransferSta... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1481 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxWriteFeatureTest.java",
"identifier": "DropboxWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test(expected = AccessDeniedException.class)\n public void testWriteDS_Store() throws Exception {\n final DropboxWriteFeature write = new DropboxWriteFeature(session);\n final TransferStatus status = new TransferStatus();\n final byte[] content = RandomUtils.nextBytes(0);\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DropboxWriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DropboxWriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final DbxUserFilesRequests files = new DbxUserFilesRequests(session.getClient(file));\n final Upl... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1244 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2BucketTypeFeatureTest.java",
"identifier": "B2BucketTypeFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void getLocation() throws Exception {\n final Path bucket1 = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path bucket2 = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory, Path.Type.volume));\n ... | {
"fields": [
{
"declarator": "containerService\n = new B2PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new B2PathContainerService();",
"type": "PathContainerService",
"var_name"... | {
"body": "@Override\n public Name getLocation(final Path file) {\n final Path container = containerService.getContainer(file);\n if(container.isRoot()) {\n return unknown;\n }\n for(Acl.UserAndRole role : container.attributes().getAcl().asList()) {\n if(role.getUs... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_342 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalDirectoryFeatureTest.java",
"identifier": "LocalDirectoryFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = AccessDeniedException.class)\n public void testFolderExists() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new Disabl... | {
"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/LocalDirectoryFeature.java",
"identifier": "Lo... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n Files.createDirectory(session.toPath(folder));\n }\n catch(IOException e) {\n throw new LocalExceptionMappingService().map(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_712 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/logging/SystemLogAppenderTest.java",
"identifier": "SystemLogAppenderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAppend() {\n final SystemLogAppender a = new SystemLogAppender();\n a.setLayout(new SimpleLayout());\n a.append(new LoggingEvent(\"f\", Logger.getLogger(SystemLogAppender.class),\n Level.ERROR, \"Test\", new RuntimeException()));\n }",
"cl... | {
"fields": [
{
"declarator": "library = Native.load(\n \"Foundation\", FoundationKitFunctions.class, Collections.singletonMap(Library.OPTION_TYPE_MAPPER, new RococoaTypeMapper()))",
"modifier": "private static final",
"original_string": "private static final FoundationKitFunctions librar... | {
"body": "@Override\n protected void append(final LoggingEvent event) {\n if(null == event.getMessage()) {\n return;\n }\n final StringBuilder buffer = new StringBuilder();\n buffer.append(layout.format(event));\n if(layout.ignoresThrowable()) {\n final Str... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_207 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/cloudfront/CustomOriginCloudFrontDistributionConfigurationTest.java",
"identifier": "CustomOriginCloudFrontDistributionConfigurationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetOrigin() {\n final Host origin = new Host(new TestProtocol(), \"m\");\n final Path container = new Path(\"/\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n origin.setWebURL(\"http://w.example.net\");\n final CustomOriginCloudFrontDistributi... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CustomOriginCloudFrontDistributionConfiguration.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CustomOriginCloudFrontDistributionConfiguration.class);",
"type": "Logge... | {
"body": "@Override\n protected URI getOrigin(final Path container, final Distribution.Method method) {\n final URI url = URI.create(String.format(\"%s%s\", new WebUrlProvider(origin).toUrl().getUrl(), PathNormalizer.normalize(origin.getDefaultPath(), true)));\n if(log.isDebugEnabled()) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_657 | {
"fields": [],
"file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSReadFeatureTest.java",
"identifier": "IRODSReadFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testReadRange() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Local(\"../profiles/iRODS (iPlant Co... | {
"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/IRODSReadFeature.java",
"identifier": "IRO... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n try {\n final IRODSFileSystemAO fs = session.getClient();\n final IRODSFileFactory factory = fs.getI... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1301 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPDeleteFeatureTest.java",
"identifier": "SFTPDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n public void testDeleteFolder() throws Exception {\n final Path folder = new Path(new SFTPHomeDirectoryService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory));\n new SFTPDirectoryFeature(session).mkdir(folder, null, new TransferStatus());\n fin... | {
"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/SFTPDeleteFeature.java",
"identifier": "SFTPDel... | {
"body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n for(Path file : files.keySet()) {\n if(file.isFile() || file.isSymbolicLink()) {\n callback.delete(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_1028 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/DownloadTransferTest.java",
"identifier": "DownloadTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testActionDirectoryExistsFalse() throws Exception {\n final Path root = new Path(\"t\", EnumSet.of(Path.Type.directory));\n final Transfer t = new DownloadTransfer(new Host(new TestProtocol()), root, new NullLocal(\"p\", \"t\") {\n @Override\n publ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DownloadTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DownloadTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public TransferAction action(final Session<?> source, final Session<?> destination, final boolean resumeRequested, final boolean reloadRequested,\n final TransferPrompt prompt, final ListProgressListener listener) throws BackgroundException {\n if(log.i... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_987 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/HostParserTest.java",
"identifier": "HostParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseAuthorityUserDefaultDomain() throws HostParserException {\n final Host host = new Host(new TestProtocol() {\n @Override\n public boolean isHostnameConfigurable() {\n return false;\n }\n\n @Override\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(HostParser.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(HostParser.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences ... | {
"body": "static void parseAuthority(final StringReader reader, final Host host) throws HostParserException {\n parseUserInfo(reader, host);\n parseHostname(reader, host);\n parsePath(reader, host, false);\n }",
"class_method_signature": "HostParser.parseAuthority(final StringReader reader,... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1478 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxCopyFeatureTest.java",
"identifier": "DropboxCopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test\n public void testCopyFile() throws Exception {\n final Path file = new Path(new DropboxHomeFinderFeature(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n final Path target = new Path(new DropboxHomeFinderFeature(session).find(), new Alp... | {
"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 copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(status.isExists()) {\n new DropboxDeleteFeature(session).delete(Collections.singletonMap(target, s... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1182 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageUrlProviderTest.java",
"identifier": "GoogleStorageUrlProviderTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testGet() {\n assertEquals(\"https://storage.cloud.google.com/c/f\", new GoogleStorageUrlProvider(session).toUrl(\n new Path(\"/c/f\", EnumSet.of(Path.Type.file))).find(DescriptiveUrl.Type.authenticated).getUrl());\n }",
"class_method_signature": "GoogleSto... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final GoogleStorageSession session;",
"type": "GoogleStorageSession",
"var_name": "session"
}
],
"file": "googlestorage/src/main/java/ch/cyberduck/core/googlestorage/GoogleStorag... | {
"body": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DefaultUrlProvider(session.getHost()).toUrl(file);\n if(file.isFile()) {\n // Authenticated browser download using cookie-based Google account authentication in conjunction with AC... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1497 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxListServiceTest.java",
"identifier": "DropboxListServiceTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test\n public void testFilenameColon() throws Exception {\n final Path home = new DropboxHomeFinderFeature(session).find();\n final Path file = new DropboxTouchFeature(session).touch(new Path(home, String.format(\"%s:name\", UUID.randomUUID().toString()), EnumSet.of(Path.Type.file)), new ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DropboxListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DropboxListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> children = new AttributedList<>();\n ListFolderResult result;\n final DbxRawClientV2 client;\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_968 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathTest.java",
"identifier": "PathTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPathContainer() {\n final Path path = new Path(new Path(\"test.cyberduck.ch\",\n EnumSet.of(Path.Type.volume, Path.Type.directory)), \"/test\", EnumSet.of(Path.Type.directory));\n assertEquals(\"/test.cyberduck.ch/test\", path.getAbsolute());\n }",... | {
"fields": [
{
"declarator": "DELIMITER = '/'",
"modifier": "public static final",
"original_string": "public static final char DELIMITER = '/';",
"type": "char",
"var_name": "DELIMITER"
},
{
"declarator": "parent",
"modifier": "protected",
"original_string... | {
"body": "@Override\n public String getAbsolute() {\n return path;\n }",
"class_method_signature": "Path.getAbsolute()",
"constructor": false,
"full_signature": "@Override public String getAbsolute()",
"identifier": "getAbsolute",
"invocations": [],
"modifiers": "@Override public",
"parame... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_591 | {
"fields": [],
"file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/CryptoVaultTest.java",
"identifier": "CryptoVaultTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLoadEmptyPassword() throws Exception {\n final NullSession session = new NullSession(new Host(new TestProtocol())) {\n @Override\n @SuppressWarnings(\"unchecked\")\n public <T> T _getFeature(final Class<T> type) {\n if(type =... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CryptoVault.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CryptoVault.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "VAULT_VERS... | {
"body": "@Override\n public synchronized CryptoVault load(final Session<?> session, final PasswordCallback prompt, final PasswordStore keychain) throws BackgroundException {\n if(this.isUnlocked()) {\n log.warn(String.format(\"Skip unlock of open vault %s\", this));\n return this;\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_745 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java",
"identifier": "FinderLocalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = LocalAccessDeniedException.class)\n public void testListNotFound() throws Exception {\n final String name = UUID.randomUUID().toString();\n FinderLocal l = new FinderLocal(System.getProperty(\"java.io.tmpdir\"), name);\n l.list();\n }",
"class_method_signature"... | {
"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 AttributedList<Local> list(final Filter<String> filter) throws AccessDeniedException {\n final NSURL resolved;\n try {\n resolved = this.lock(true);\n if(null == resolved) {\n return super.list(filter);\n }\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_315 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureSessionTest.java",
"identifier": "AzureSessionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConnectSharedAccessSignaturePrompt() throws Exception {\n final Host host = new Host(new AzureProtocol() {\n @Override\n public boolean isUsernameConfigurable() {\n return false;\n }\n\n @Override\n publ... | {
"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_1213 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageDirectoryFeatureTest.java",
"identifier": "GoogleStorageDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testDirectory() throws Exception {\n final Path bucket = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new GoogleStorageDirectoryFeature(session).mkdir(new Path(bucket,\n new AlphanumericRandomStringSe... | {
"fields": [
{
"declarator": "MIMETYPE = \"application/x-directory\"",
"modifier": "private static final",
"original_string": "private static final String MIMETYPE = \"application/x-directory\";",
"type": "String",
"var_name": "MIMETYPE"
},
{
"declarator": "containerSe... | {
"body": "@Override\n public Path mkdir(final Path folder, final String location, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n final Bucket bucket = session.getClient().buckets().insert(session.getHost().getCreden... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1356 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftMoveFeatureTest.java",
"identifier": "SwiftMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test(expected = BackgroundException.class)\n public void testMoveLargeObjectToDifferentBucket() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final Path ... | {
"fields": [
{
"declarator": "containerService\n = new PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new PathContainerService();",
"type": "PathContainerService",
"var_name": "container... | {
"body": "@Override\n public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {\n if(containerService.getContainer(file).equals(containerService.getContainer(renamed))) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_600 | {
"fields": [],
"file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraReadFeatureTest.java",
"identifier": "SpectraReadFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testOffsetSupport() {\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(... | {
"fields": [
{
"declarator": "containerService\n = new S3PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new S3PathContainerService();",
"type": "PathContainerService",
"var_name": "conta... | {
"body": "@Override\n public boolean offset(final Path file) {\n return false;\n }",
"class_method_signature": "SpectraReadFeature.offset(final Path file)",
"constructor": false,
"full_signature": "@Override public boolean offset(final Path file)",
"identifier": "offset",
"invocations": [],
... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_250 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPListResponseReaderTest.java",
"identifier": "FTPListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseAbsolutePaths() throws Exception {\n Path path = new Path(\n \"/data/FTP_pub\", EnumSet.of(Path.Type.directory));\n\n String[] replies = new String[]{\n \"- [RWCEAFMS] Petersm 0 May 05 2004 /data/FTP_pub/Welcom... | {
"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_483 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDelegatingMoveFeatureTest.java",
"identifier": "SDSDelegatingMoveFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testMoveDifferentDataRoom() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room1 = new SDSDirectoryFeature(session, nodeid).mkdir(new Path(\n new AlphanumericRandomStringService().random(), ... | {
"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_179 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SearchFeatureTest.java",
"identifier": "S3SearchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testSearchInBucket() throws Exception {\n final String name = new AlphanumericRandomStringService().random();\n final Path bucket = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path file = new S3TouchFeature(s... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final S3Session session;",
"type": "S3Session",
"var_name": "session"
}
],
"file": "s3/src/main/java/ch/cyberduck/core/s3/S3SearchFeature.java",
"identifier": "S3SearchFeature"... | {
"body": "@Override\n public AttributedList<Path> search(final Path workdir, final Filter<Path> regex, final ListProgressListener listener) throws BackgroundException {\n final AttributedList<Path> objects;\n try {\n objects = new S3ObjectListService(session).list(workdir, listener, null,... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_529 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/microsoft/MicrosoftIISDAVAttributesFinderFeatureTest.java",
"identifier": "MicrosoftIISDAVAttributesFinderFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCustomModified_PropertyAvailable() throws Exception {\n final MicrosoftIISDAVAttributesFinderFeature f = new MicrosoftIISDAVAttributesFinderFeature(null);\n final DavResource mock = mock(DavResource.class);\n\n Map<QName, String> map = new HashMap<>();\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(MicrosoftIISDAVAttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(MicrosoftIISDAVAttributesFinderFeature.class);",
"type": "Logger",
"var_nam... | {
"body": "protected PathAttributes toAttributes(final DavResource resource) {\n final PathAttributes attributes = super.toAttributes(resource);\n final Map<QName, String> properties = resource.getCustomPropsNS();\n if(null != properties && properties.containsKey(MicrosoftIISDAVTimestampFeature.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_48 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ExceptionMappingServiceTest.java",
"identifier": "S3ExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMapping() {\n assertEquals(\"Message. Please contact your web hosting service provider for assistance.\", new S3ExceptionMappingService().map(new ServiceException(\"message\")).getDetail());\n assertEquals(\"Exceeded 403 retry limit (1). Please contact your web host... | {
"fields": [],
"file": "s3/src/main/java/ch/cyberduck/core/s3/S3ExceptionMappingService.java",
"identifier": "S3ExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "S3ExceptionMappingService.map(final ServiceException e)",
"constructor": false,
"full_sig... | {
"body": "@Override\n public BackgroundException map(final ServiceException e) {\n if(e.getCause() instanceof ServiceException) {\n return this.map((ServiceException) e.getCause());\n }\n final StringBuilder buffer = new StringBuilder();\n if(StringUtils.isNotBlank(e.getErro... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_196 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/cloudfront/WebsiteCloudFrontDistributionConfigurationTest.java",
"identifier": "WebsiteCloudFrontDistributionConfigurationTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testFeatures() {\n final CloudFrontDistributionConfiguration d = new WebsiteCloudFrontDistributionConfiguration(\n new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname())), new DisabledX509TrustManager(), new DefaultX509KeyManager(), Collecti... | {
"fields": [],
"file": "s3/src/main/java/ch/cyberduck/core/cloudfront/WebsiteCloudFrontDistributionConfiguration.java",
"identifier": "WebsiteCloudFrontDistributionConfiguration",
"interfaces": "",
"methods": [
{
"class_method_signature": "WebsiteCloudFrontDistributionConfiguration.WebsiteCloudFron... | {
"body": "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> T getFeature(final Class<T> type, final Distribution.Method method) {\n if(type == Index.class) {\n if(method.equals(Distribution.WEBSITE)) {\n return (T) this;\n }\n }\n if(type == Cna... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1090 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/CollectionTest.java",
"identifier": "CollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRemoveAll() {\n Collection<Object> collection = new Collection<Object>();\n final Object a = new Object();\n collection.add(a);\n final Object b = new Object();\n collection.add(b);\n final Object c = new Object();\n collection.add... | {
"fields": [
{
"declarator": "log = Logger.getLogger(Collection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(Collection.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "locked = new... | {
"body": "@Override\n public boolean removeAll(java.util.Collection<?> c) {\n if(super.removeAll(c)) {\n for(Object item : c) {\n this.collectionItemRemoved((E) item);\n }\n return true;\n }\n return false;\n }",
"class_method_signature": "... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_895 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/serializer/HostDictionaryTest.java",
"identifier": "HostDictionaryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDictionaryWorkdirRegion() {\n final Host h = new Host(new TestProtocol(), \"h\", 66);\n h.setLabels(new HashSet<>(Arrays.asList(\"a\", \"b\")));\n final Path container = new Path(\"/container\", EnumSet.of(Path.Type.directory));\n container.attributes(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(HostDictionary.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(HostDictionary.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "fact... | {
"body": "public <T> Host deserialize(final T serialized) {\n final Deserializer dict = factory.create(serialized);\n Object protocolObj = dict.stringForKey(\"Protocol\");\n if(protocolObj == null) {\n log.warn(String.format(\"Missing protocol key in %s\", dict));\n return ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1287 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/openssh/OpenSSHAgentAuthenticatorTest.java",
"identifier": "OpenSSHAgentAuthenticatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore\n public void testGetIdentities() {\n final OpenSSHAgentAuthenticator authenticator = new OpenSSHAgentAuthenticator();\n final Collection<Identity> identities = authenticator.getIdentities();\n assertNotNull(authenticator.getProxy());\n assertFalse(identiti... | {
"fields": [
{
"declarator": "log = Logger.getLogger(OpenSSHAgentAuthenticator.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(OpenSSHAgentAuthenticator.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Collection<Identity> getIdentities() {\n if(!SSHAgentConnector.isConnectorAvailable()) {\n log.warn(String.format(\"SSH agent %s is not running\", this));\n return Collections.emptyList();\n }\n if(null == proxy) {\n return Collect... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_381 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveFileidProviderTest.java",
"identifier": "DriveFileidProviderTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testGetFileid() throws Exception {\n final Path test = new Path(DriveHomeFinderService.MYDRIVE_FOLDER, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));\n new DriveTouchFeature(session, new DriveFileidProvider(session).withCache(cache)).touch(... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final DriveSession session;",
"type": "DriveSession",
"var_name": "session"
},
{
"declarator": "cache = PathCache.empty()",
"modifier": "private",
"original_str... | {
"body": "@Override\n public String getFileid(final Path file, final ListProgressListener listener) throws BackgroundException {\n if(StringUtils.isNotBlank(file.attributes().getVersionId())) {\n return file.attributes().getVersionId();\n }\n if(file.isRoot()\n || file.e... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_694 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/i18n/BundleLocaleTest.java",
"identifier": "BundleLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGet() {\n assertEquals(\"Il y a eu un problème lors de la recherche de mises à jour\",\n new BundleLocale().localize(\"Il y a eu un problème lors de la recherche de mises à jour\", \"Localizable\"));\n }",
"class_method_signature": "BundleLocaleTest.tes... | {
"fields": [
{
"declarator": "bundle",
"modifier": "private final",
"original_string": "private final NSBundle bundle;",
"type": "NSBundle",
"var_name": "bundle"
},
{
"declarator": "cache\n = LRUCache.build(1000)",
"modifier": "private final",
"origi... | {
"body": "@Override\n public String localize(final String key, final String table) {\n final String identifier = String.format(\"%s.%s\", table, key);\n if(!cache.contains(identifier)) {\n cache.put(identifier, bundle.localizedString(key, table));\n }\n return cache.get(iden... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1268 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2FindFeatureTest.java",
"identifier": "B2FindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testFind() 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 B2FileidProvider fileid = ... | {
"fields": [
{
"declarator": "containerService\n = new B2PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new B2PathContainerService();",
"type": "PathContainerService",
"var_name"... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n try {\n if(containerService.isContainer(file)) {\n final List<B2BucketResponse> buckets = session.getClient().listBuckets();\n for(B2BucketResponse bucket : buckets) {\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_33 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SingleUploadServiceTest.java",
"identifier": "S3SingleUploadServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testDecorate() throws Exception {\n final NullInputStream n = new NullInputStream(1L);\n final S3Session session = new S3Session(new Host(new S3Protocol()));\n assertSame(NullInputStream.class, new S3SingleUploadService(session,\n new S3WriteFeature(se... | {
"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 protected InputStream decorate(final InputStream in, final MessageDigest digest) throws IOException {\n if(null == digest) {\n log.warn(\"MD5 calculation disabled\");\n return super.decorate(in, null);\n }\n else {\n return new DigestInpu... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_417 | {
"fields": [],
"file": "storegate/src/test/java/ch/cyberduck/core/storegate/StoregateCopyFeatureTest.java",
"identifier": "StoregateCopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractStoregateTest"
} | {
"body": "@Test\n public void testCopyFileWithRename() throws Exception {\n final StoregateIdProvider fileid = new StoregateIdProvider(session).withCache(cache);\n final Path room = new StoregateDirectoryFeature(session, fileid).mkdir(new Path(\n String.format(\"/My files/%s\", new Alphan... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final StoregateSession session;",
"type": "StoregateSession",
"var_name": "session"
},
{
"declarator": "fileid",
"modifier": "private final",
"original_string":... | {
"body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final CopyFileRequest copy = new CopyFileRequest()\n .name(target.getName())\n .parent... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_944 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathNormalizerTest.java",
"identifier": "PathNormalizerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNormalizeNameWithBackslash() {\n assertEquals(\"file\\\\name\", PathNormalizer.name(\"/path/to/file\\\\name\"));\n }",
"class_method_signature": "PathNormalizerTest.testNormalizeNameWithBackslash()",
"constructor": false,
"full_signature": "@Test public void testN... | {
"fields": [
{
"declarator": "IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\")",
"modifier": "private static final",
"original_string": "private static final boolean IS_ENABLED = PreferencesFactory.get().getBoolean(\"path.normalize\");",
"type": "boolean",
"var_n... | {
"body": "public static String name(final String path) {\n if(String.valueOf(Path.DELIMITER).equals(path)) {\n return path;\n }\n if(!StringUtils.contains(path, Path.DELIMITER)) {\n return UNICODE_NORMALIZER.normalize(path).toString();\n }\n if(StringUtils.end... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1141 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/CredentialsTest.java",
"identifier": "CredentialsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEquals() {\n assertEquals(new Credentials(\"a\", \"b\"), new Credentials(\"a\", \"b\"));\n assertNotSame(new Credentials(\"a\", \"b\"), new Credentials(\"a\", \"c\"));\n assertNotEquals(new Credentials(\"a\", \"b\"), new Credentials(\"a\", \"c\"));\n }",
... | {
"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": "@Override\n public boolean equals(final Object o) {\n if(this == o) {\n return true;\n }\n if(!(o instanceof Credentials)) {\n return false;\n }\n final Credentials that = (Credentials) o;\n return Objects.equals(user, that.user) &&\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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.