id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
79564911_801 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/MappingMimeTypeServiceTest.java",
"identifier": "MappingMimeTypeServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetMime() {\n MappingMimeTypeService s = new MappingMimeTypeService();\n assertEquals(\"text/plain\", s.getMime(\"f.txt\"));\n assertEquals(\"text/plain\", s.getMime(\"f.TXT\"));\n assertEquals(\"video/x-f4v\", s.getMime(\"f.f4v\"));\n assertEqu... | {
"fields": [
{
"declarator": "log = Logger.getLogger(MappingMimeTypeService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(MappingMimeTypeService.class);",
"type": "Logger",
"var_name": "log"
},
{
"de... | {
"body": "@Override\n public String getMime(final String filename) {\n if(StringUtils.startsWith(filename, \"._\")) {\n return DEFAULT_CONTENT_TYPE;\n }\n // Reads from core.mime.types in classpath\n return types.getMimetype(StringUtils.lowerCase(filename));\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_1454 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/CommandLinePathParserTest.java",
"identifier": "CommandLinePathParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParse() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final CommandLine input = parser.parse(new Options(), new String[]{});\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Arrays.asList(new FTPTLSProtocol(), n... | {
"fields": [
{
"declarator": "detector\n = new DelimiterPathKindDetector()",
"modifier": "private final",
"original_string": "private final PathKindDetector detector\n = new DelimiterPathKindDetector();",
"type": "PathKindDetector",
"var_name": "detector"
},
{
... | {
"body": "public Path parse(final String uri) throws HostParserException {\n final Host host = new HostParser(factory).get(uri);\n if(StringUtils.isBlank(host.getDefaultPath())) {\n return new Path(String.valueOf(Path.DELIMITER), EnumSet.of((Path.Type.directory)));\n }\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_1004 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/upload/ResumeFilterTest.java",
"identifier": "ResumeFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAppendEqualSize() throws Exception {\n final NullSession session = new NullSession(new Host(new TestProtocol()));\n final ResumeFilter f = new ResumeFilter(new DisabledUploadSymlinkResolver(), session,\n new UploadFilterOptions().withTemporary(true), ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(ResumeFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(ResumeFilter.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "upload",... | {
"body": "@Override\n public boolean accept(final Path file, final Local local, final TransferStatus parent) throws BackgroundException {\n if(super.accept(file, local, parent)) {\n if(local.isFile()) {\n if(parent.isExists()) {\n final Write.Append append = 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_102 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3VersionedObjectListServiceTest.java",
"identifier": "S3VersionedObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testEnableVersioningExistingFiles() throws Exception {\n final Path bucket = new S3DirectoryFeature(session, new S3WriteFeature(session))\n .mkdir(new Path(new AsciiRandomStringService().random(), EnumSet.of(Path.Type.directory, Path.Type.volume)), \"eu-central-1\",... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3VersionedObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3VersionedObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n final ThreadPool pool = ThreadPoolFactory.get(\"list\", concurrency);\n try {\n final String prefix = this.createPrefix(directory);\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_552 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVSSLProtocolTest.java",
"identifier": "DAVSSLProtocolTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPrefix() {\n assertEquals(\"ch.cyberduck.core.dav.DAV\", new DAVSSLProtocol().getPrefix());\n }",
"class_method_signature": "DAVSSLProtocolTest.testPrefix()",
"constructor": false,
"full_signature": "@Test public void testPrefix()",
"identifier": "testPrefix",
... | {
"fields": [],
"file": "webdav/src/main/java/ch/cyberduck/core/dav/DAVSSLProtocol.java",
"identifier": "DAVSSLProtocol",
"interfaces": "",
"methods": [
{
"class_method_signature": "DAVSSLProtocol.getName()",
"constructor": false,
"full_signature": "@Override public String getName()",
... | {
"body": "@Override\n public String getPrefix() {\n return String.format(\"%s.%s\", DAVSSLProtocol.class.getPackage().getName(), StringUtils.upperCase(this.getType().name()));\n }",
"class_method_signature": "DAVSSLProtocol.getPrefix()",
"constructor": false,
"full_signature": "@Override public St... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_786 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/ui/browser/RecursiveSearchFilterTest.java",
"identifier": "RecursiveSearchFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAcceptFile() {\n final RecursiveSearchFilter f = new RecursiveSearchFilter(new AttributedList<>(Arrays.asList(new Path(\"/f\", EnumSet.of(Path.Type.file)))));\n assertTrue(f.accept(new Path(\"/f\", EnumSet.of(Path.Type.file))));\n assertFalse(f.accept(new Pat... | {
"fields": [
{
"declarator": "list",
"modifier": "private final",
"original_string": "private final AttributedList<Path> list;",
"type": "AttributedList<Path>",
"var_name": "list"
}
],
"file": "core/src/main/java/ch/cyberduck/ui/browser/RecursiveSearchFilter.java",
"identi... | {
"body": "@Override\n public boolean accept(final Path file) {\n if(list.find(new SimplePathPredicate(file)) != null) {\n return true;\n }\n for(Path f : list) {\n if(f.isChild(file)) {\n return true;\n }\n }\n return false;\n }... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1395 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftMetadataFeatureTest.java",
"identifier": "SwiftMetadataFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testGetContainerMetadata() 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 Map<String, String> metadata = new SwiftMetadataFeature... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftMetadataFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftMetadataFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public Map<String, String> getMetadata(final Path file) throws BackgroundException {\n try {\n if(containerService.isContainer(file)) {\n final ContainerMetadata meta\n = session.getClient().getContainerMetaData(regionService.lookup(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_339 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalWriteFeatureTest.java",
"identifier": "LocalWriteFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testWriteRangeEndFirst() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n sessi... | {
"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/LocalWriteFeature.java",
"identifier": "LocalW... | {
"body": "@Override\n public StatusOutputStream<Void> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final java.nio.file.Path p = session.toPath(file);\n final Set<OpenOption> options = new HashSet<>();\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_293 | {
"fields": [],
"file": "bonjour/src/test/java/ch/cyberduck/core/bonjour/RendezvousResponderTest.java",
"identifier": "RendezvousResponderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testInit() throws Exception {\n final Rendezvous r = new RendezvousResponder();\n final CountDownLatch wait = new CountDownLatch(1);\n final AssertionError[] failure = new AssertionError[1];\n r.addListener(new RendezvousListener() {\n @Override... | {
"fields": [
{
"declarator": "log = Logger.getLogger(RendezvousResponder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(RendezvousResponder.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public void init() {\n if(log.isDebugEnabled()) {\n log.debug(\"Initialize responder by browsing DNSSD\");\n }\n super.init();\n try {\n for(String protocol : this.getServiceTypes()) {\n if(log.isInfoEnabled()) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_769 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/preferences/ServiceManagementApplicationLoginRegistryTest.java",
"identifier": "ServiceManagementApplicationLoginRegistryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRegister() {\n assertFalse(new ServiceManagementApplicationLoginRegistry().register(\n new Application(\"bundle.helper\")));\n }",
"class_method_signature": "ServiceManagementApplicationLoginRegistryTest.testRegister()",
"constructor": false,
"full_... | {
"fields": [
{
"declarator": "log = Logger.getLogger(ServiceManagementApplicationLoginRegistry.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(ServiceManagementApplicationLoginRegistry.class);",
"type": "Logger",
"v... | {
"body": "@Override\n public boolean register(final Application application) {\n final Local helper = new FinderLocal(new BundleApplicationResourcesFinder().find().getParent(),\n String.format(\"Library/LoginItems/%s.app\", application.getName()));\n if(!finder.register(helper)) {\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_1116 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/local/ApplicationTest.java",
"identifier": "ApplicationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEquals() {\n assertEquals(new Application(\"com.apple.textedit\"), new Application(\"com.apple.textedit\"));\n assertEquals(new Application(\"com.apple.textedit\"), new Application(\"com.apple.textedit\", \"TextEdit\"));\n assertEquals(new Application(\"com.a... | {
"fields": [
{
"declarator": "notfound\n = new Application(null, LocaleFactory.localizedString(\"Unknown\"))",
"modifier": "public static final",
"original_string": "public static final Application notfound\n = new Application(null, LocaleFactory.localizedString(\"Unknown\... | {
"body": "@Override\n public boolean equals(final Object o) {\n if(this == o) {\n return true;\n }\n if(!(o instanceof Application)) {\n return false;\n }\n final Application that = (Application) o;\n if(!Objects.equals(identifier, that.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_913 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/SearchWorkerTest.java",
"identifier": "SearchWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRun() throws Exception {\n final PathCache cache = new PathCache(Integer.MAX_VALUE);\n final AttributedList<Path> root = new AttributedList<>();\n root.add(new Path(\"/t1.png\", EnumSet.of(Path.Type.file)));\n root.add(new Path(\"/t1.gif\", EnumSet.of(... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SearchWorker.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SearchWorker.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "director... | {
"body": "@Override\n public AttributedList<Path> run(final Session<?> session) throws BackgroundException {\n // Run recursively\n final Search feature = session.getFeature(Search.class).withCache(cache);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Run with feature %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_440 | {
"fields": [],
"file": "manta/src/test/java/ch/cyberduck/core/manta/MantaFindFeatureTest.java",
"identifier": "MantaFindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractMantaTest"
} | {
"body": "@Test\n public void testFindPrivate() {\n final MantaFindFeature f = new MantaFindFeature(session);\n assertTrue(f.find(new Path(\n new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath()).getAccountRoot(),\n Manta... | {
"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/MantaFindFeature.java",
"identifier": "Man... | {
"body": "@Override\n public boolean find(final Path file) {\n return session.getClient().existsAndIsAccessible(file.getAbsolute());\n }",
"class_method_signature": "MantaFindFeature.find(final Path file)",
"constructor": false,
"full_signature": "@Override public boolean find(final Path file)",
... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_64 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ProtocolTest.java",
"identifier": "S3ProtocolTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testScheme() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new S3Protocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Local(\"../profiles/Verizon Cloud Storage (AMS... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3Protocol.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3Protocol.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "credentials ... | {
"body": "@Override\n public Scheme getScheme() {\n return Scheme.https;\n }",
"class_method_signature": "S3Protocol.getScheme()",
"constructor": false,
"full_signature": "@Override public Scheme getScheme()",
"identifier": "getScheme",
"invocations": [],
"modifiers": "@Override public",
"... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_505 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/triplecrypt/TripleCryptWriteFeatureTest.java",
"identifier": "TripleCryptWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testWriteMultipart() throws Exception {\n final Path room = new Path(\"test\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n final byte[] content = RandomUtils.nextBytes(32769);\n final TransferStatus status = new TransferStatus();\... | {
"fields": [
{
"declarator": "log = Logger.getLogger(TripleCryptWriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(TripleCryptWriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"... | {
"body": "@Override\n public StatusOutputStream<VersionId> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final ObjectReader reader = session.getClient().getJSON().getContext(null).readerFor(FileKey.class);\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_155 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java",
"identifier": "S3ObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testListAWS4SignatureFrankfurt() throws Exception {\n session.setSignatureVersion(S3Protocol.AuthenticationHeaderSignatureVersion.AWS4HMACSHA256);\n final Path container = new Path(\"test-eu-central-1-cyberduck\", EnumSet.of(Path.Type.volume));\n final Attributed... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3ObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3ObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, String.valueOf(Path.DELIMITER));\n }",
"class_method_signature": "S3ObjectListService.list(final Path directory, final ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1053 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/normalizer/CopyRootPathsNormalizerTest.java",
"identifier": "CopyRootPathsNormalizerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNormalizeNone() {\n CopyRootPathsNormalizer normalizer = new CopyRootPathsNormalizer();\n final HashMap<Path, Path> files = new HashMap<Path, Path>();\n files.put(new Path(\"/p\", EnumSet.of(Path.Type.directory)), new Path(\"/d\", EnumSet.of(Path.Type.directo... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CopyRootPathsNormalizer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CopyRootPathsNormalizer.class);",
"type": "Logger",
"var_name": "log"
}
],
"file":... | {
"body": "@Override\n public Map<Path, Path> normalize(final Map<Path, Path> files) {\n final Map<Path, Path> normalized = new HashMap<Path, Path>();\n Iterator<Path> sourcesIter = files.keySet().iterator();\n Iterator<Path> destinationsIter = files.values().iterator();\n while(sources... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_856 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/io/CRC32ChecksumComputeTest.java",
"identifier": "CRC32ChecksumComputeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompute() throws Exception {\n assertEquals(\"0\",\n new CRC32ChecksumCompute().compute(new NullInputStream(0), new TransferStatus()).hash);\n assertEquals(\"d202ef8d\",\n new CRC32ChecksumCompute().compute(new NullInputStream(1L), new ... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/io/CRC32ChecksumCompute.java",
"identifier": "CRC32ChecksumCompute",
"interfaces": "",
"methods": [
{
"class_method_signature": "CRC32ChecksumCompute.compute(final InputStream in, final TransferStatus status)",
"constructor": false,... | {
"body": "@Override\n public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException {\n final InputStream normalized = this.normalize(in, status);\n final CRC32 crc32 = new CRC32();\n try {\n byte[] buffer = new byte[16384];\n int by... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1403 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftAttributesFinderFeatureTest.java",
"identifier": "SwiftAttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testFind() 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 String name = UUID.randomUUID().toString() + \".txt\";\n final P... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftAttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftAttributesFinderFeature.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 final Region region = regionService.lookup(file);\n try {\n if(containerService.isContainer(file)) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_790 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/ui/browser/UploadDirectoryFinderTest.java",
"identifier": "UploadDirectoryFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFind() {\n final Host host = new Host(new TestProtocol());\n assertNull(host.getDownloadFolder());\n final UploadDirectoryFinder finder = new UploadDirectoryFinder();\n assertEquals(new Local(System.getProperty(\"user.home\")), finder.find(host));\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(UploadDirectoryFinder.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(UploadDirectoryFinder.class);",
"type": "Logger",
"var_name": "log"
},
{
"decl... | {
"body": "@Override\n public Local find(final Host bookmark) {\n if(null != bookmark.getUploadFolder()) {\n if(bookmark.getUploadFolder().exists()) {\n return bookmark.getUploadFolder();\n }\n }\n final Local directory = LocalFactory.get(preferences.getPro... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_285 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/FTPExceptionMappingServiceTest.java",
"identifier": "FTPExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testQuota() {\n assertTrue(new FTPExceptionMappingService().map(new FTPException(452, \"\")) instanceof QuotaException);\n }",
"class_method_signature": "FTPExceptionMappingServiceTest.testQuota()",
"constructor": false,
"full_signature": "@Test public void testQuota(... | {
"fields": [],
"file": "ftp/src/main/java/ch/cyberduck/core/ftp/FTPExceptionMappingService.java",
"identifier": "FTPExceptionMappingService",
"interfaces": "",
"methods": [
{
"class_method_signature": "FTPExceptionMappingService.map(final IOException e)",
"constructor": false,
"full_sig... | {
"body": "@Override\n public BackgroundException map(final IOException e) {\n final StringBuilder buffer = new StringBuilder();\n this.append(buffer, e.getMessage());\n if(e instanceof FTPConnectionClosedException) {\n return new ConnectionRefusedException(buffer.toString(), e);\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1229 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageReadFeatureTest.java",
"identifier": "GoogleStorageReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testReadCloseReleaseEntity() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path file = new Path(container, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GoogleStorageReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GoogleStorageReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(0L == status.getLength()) {\n return new NullInputStream(0L);\n }\n final StringBuilder ur... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1383 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftLocationFeatureTest.java",
"identifier": "SwiftLocationFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testFindLocation() throws Exception {\n assertEquals(new SwiftLocationFeature.SwiftRegion(\"IAD\"), new SwiftLocationFeature(session).getLocation(\n new Path(\"cdn.duck.sh\", EnumSet.of(Path.Type.volume, Path.Type.directory))));\n assertEquals(unknown, new Sw... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftLocationFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftLocationFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public Name getLocation(final Path file) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n if(container.isRoot()) {\n return unknown;\n }\n if(cache.containsKey(container)) {\n return cache.get(conta... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_72 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3CopyFeatureTest.java",
"identifier": "S3CopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testCopyFile() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final TransferStatus status = new TransferStatus();\n status.setMetadata(Collections.singletonMap(\"cyberduck\"... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3CopyFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3CopyFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sessio... | {
"body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n if(null == status.getStorageClass()) {\n // Keep same storage class\n status.setStorageClass(new S3StorageClassFe... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_456 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSSharesUrlProviderTest.java",
"identifier": "SDSSharesUrlProviderTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test(expected = InteroperabilityException.class)\n public void testToUrlWeakPassword() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session, nodeid).mkdir(new Path(new AlphanumericRandomS... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSSharesUrlProvider.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSSharesUrlProvider.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public DescriptiveUrl toDownloadUrl(final Path file, CreateDownloadShareRequest options, final PasswordCallback callback) throws BackgroundException {\n try {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Create download share for %s\", file));\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_905 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/HostTest.java",
"identifier": "HostTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompare() {\n assertEquals(0, new Host(new TestProtocol(Scheme.ftp), \"a\", 33)\n .compareTo(new Host(new TestProtocol(Scheme.ftp), \"a\", 33)));\n assertEquals(-1, new Host(new TestProtocol(Scheme.ftp), \"a\", 22)\n .compareTo(new Host(new Tes... | {
"fields": [
{
"declarator": "log = Logger.getLogger(Host.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(Host.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "cloudfront = new Credent... | {
"body": "@Override\n public int compareTo(final Host o) {\n if(protocol.compareTo(o.protocol) < 0) {\n return -1;\n }\n else if(protocol.compareTo(o.protocol) > 0) {\n return 1;\n }\n if(port.compareTo(o.port) < 0) {\n return -1;\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_1100 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/local/RevealServiceFactoryTest.java",
"identifier": "RevealServiceFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = FactoryException.class)\n public void testGet() {\n RevealServiceFactory.get();\n }",
"class_method_signature": "RevealServiceFactoryTest.testGet()",
"constructor": false,
"full_signature": "@Test(expected = FactoryException.class) public void testGet()",
"identifier":... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/local/RevealServiceFactory.java",
"identifier": "RevealServiceFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "RevealServiceFactory.RevealServiceFactory()",
"constructor": true,
"full_signature": "public ... | {
"body": "public static RevealService get() {\n return new RevealServiceFactory().create();\n }",
"class_method_signature": "RevealServiceFactory.get()",
"constructor": false,
"full_signature": "public static RevealService get()",
"identifier": "get",
"invocations": [
"create"
],
"modifie... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1415 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftDeleteFeatureTest.java",
"identifier": "SwiftDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testDeletePlaceholder() throws Exception {\n final AtomicBoolean delete = new AtomicBoolean();\n final String name = \"placeholder-\" + UUID.randomUUID().toString();\n session.withListener(new TranscriptListener() {\n @Override\n public void... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SwiftDeleteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SwiftDeleteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n this.delete(files, prompt, callback, true);\n }",
"class_method_signature": "SwiftDeleteFeature.delete(final Map<Path, TransferStatus> ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_840 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/io/SHA256ChecksumComputeTest.java",
"identifier": "SHA256ChecksumComputeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompute() throws Exception {\n assertEquals(\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\n new SHA256ChecksumCompute().compute(new NullInputStream(0), new TransferStatus()).hash);\n }",
"class_method_signature": "SHA256ChecksumCompu... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/io/SHA256ChecksumCompute.java",
"identifier": "SHA256ChecksumCompute",
"interfaces": "",
"methods": [
{
"class_method_signature": "SHA256ChecksumCompute.compute(final InputStream in, final TransferStatus status)",
"constructor": fal... | {
"body": "@Override\n public Checksum compute(final InputStream in, final TransferStatus status) throws ChecksumException {\n return new Checksum(HashAlgorithm.sha256, Hex.encodeHexString(this.digest(\"SHA-256\",\n this.normalize(in, status))));\n }",
"class_method_signature": "SHA256Checks... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1045 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/CopyTransferTest.java",
"identifier": "CopyTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testList() throws Exception {\n Transfer t = new CopyTransfer(new Host(new TestProtocol()),\n new Host(new TestProtocol()), new HashMap<>(Collections.singletonMap(\n new Path(\"/s\", EnumSet.of(Path.Type.directory)),\n new Path(\"/t... | {
"fields": [
{
"declarator": "log = Logger.getLogger(CopyTransfer.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(CopyTransfer.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "filter =... | {
"body": "@Override\n public List<TransferItem> list(final Session<?> session, final Path directory, final Local local,\n 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_143 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ObjectListServiceTest.java",
"identifier": "S3ObjectListServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testList() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"us-east-1\");\n final AttributedList<Path> list = new S3ObjectListService(sessio... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3ObjectListService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3ObjectListService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n return this.list(directory, listener, String.valueOf(Path.DELIMITER));\n }",
"class_method_signature": "S3ObjectListService.list(final Path directory, final ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_513 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSTouchFeatureTest.java",
"identifier": "SDSTouchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test(expected = InteroperabilityException.class)\n public void testInvalidCharacter() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session, nodeid).mkdir(\n new Path(new Alphan... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSTouchFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSTouchFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "se... | {
"body": "@Override\n public Path touch(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n if(nodeid.isEncrypted(file)) {\n status.setFilekey(nodeid.getFileKey());\n }\n final StatusOutputStream<VersionId> out = writer.write(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_397 | {
"fields": [],
"file": "storegate/src/test/java/ch/cyberduck/core/storegate/StoregateDirectoryFeatureTest.java",
"identifier": "StoregateDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractStoregateTest"
} | {
"body": "@Test\n public void testCreateDirectory() throws Exception {\n final StoregateIdProvider nodeid = new StoregateIdProvider(session).withCache(cache);\n final Path folder = new StoregateDirectoryFeature(session, nodeid).mkdir(\n new Path(String.format(\"/My files/%s\", new Alphanu... | {
"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 mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n final FilesApi files = new FilesApi(session.getClient());\n final CreateFolderRequest request = new CreateFolderRequest();\n r... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1291 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/openssh/OpenSSHCredentialsConfiguratorTest.java",
"identifier": "OpenSSHCredentialsConfiguratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNullHostname() {\n OpenSSHCredentialsConfigurator c = new OpenSSHCredentialsConfigurator(\n new OpenSshConfig(\n new Local(\"src/main/test/resources\", \"openssh/config\")));\n assertNotNull(c.configure(new Host(new TestProtocol(Scheme.sftp... | {
"fields": [
{
"declarator": "log = Logger.getLogger(OpenSSHCredentialsConfigurator.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(OpenSSHCredentialsConfigurator.class);",
"type": "Logger",
"var_name": "log"
},... | {
"body": "@Override\n public Credentials configure(final Host host) {\n final Credentials credentials = new Credentials(host.getCredentials());\n if(StringUtils.isNotBlank(host.getHostname())) {\n configuration.refresh();\n // Update this host credentials from the OpenSSH confi... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_682 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java",
"identifier": "NSImageIconCacheTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFolderIconAllSizes() {\n final NSImage icon = new NSImageIconCache().folderIcon(null);\n assertNotNull(icon);\n assertTrue(icon.isValid());\n assertFalse(icon.isTemplate());\n assertTrue(icon.representations().count().intValue() >= 1);\n }",
... | {
"fields": [
{
"declarator": "log = Logger.getLogger(NSImageIconCache.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(NSImageIconCache.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public NSImage folderIcon(final Integer size) {\n NSImage folder = this.iconNamed(\"NSFolder\", size);\n if(null == folder) {\n return this.iconNamed(\"NSFolder\", size);\n }\n return folder;\n }",
"class_method_signature": "NSImageIconCache.folder... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_378 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveTimestampFeatureTest.java",
"identifier": "DriveTimestampFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDriveTest"
} | {
"body": "@Test\n public void testSetTimestamp() throws Exception {\n final Path home = DriveHomeFinderService.MYDRIVE_FOLDER;\n final Path test = new Path(home, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final DriveFileidProvider fileid = new DriveFileidProvider(session).wi... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final DriveSession session;",
"type": "DriveSession",
"var_name": "session"
},
{
"declarator": "fileid",
"modifier": "private final",
"original_string": "privat... | {
"body": "@Override\n public void setTimestamp(final Path file, final TransferStatus status) throws BackgroundException {\n try {\n final String fileid = this.fileid.getFileid(file, new DisabledListProgressListener());\n final File properties = new File();\n properties.setM... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_728 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/diagnostics/SystemConfigurationReachabilityTest.java",
"identifier": "SystemConfigurationReachabilityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testReachabilityLocalDisk() {\n final Reachability r = new SystemConfigurationReachability();\n assertTrue(r.isReachable(\n new Host(new AbstractProtocol() {\n\n @Override\n public String getIdentifier() {\n re... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SystemConfigurationReachability.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SystemConfigurationReachability.class);",
"type": "Logger",
"var_name": "log"
... | {
"body": "@Override\n public boolean isReachable(final Host bookmark) {\n final CDReachabilityMonitor monitor = CDReachabilityMonitor.monitorForUrl(this.toURL(bookmark));\n return monitor.isReachable();\n }",
"class_method_signature": "SystemConfigurationReachability.isReachable(final Host book... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1157 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/threading/BackgroundActionRegistryTest.java",
"identifier": "BackgroundActionRegistryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGlobal() {\n assertSame(BackgroundActionRegistry.global(), BackgroundActionRegistry.global());\n }",
"class_method_signature": "BackgroundActionRegistryTest.testGlobal()",
"constructor": false,
"full_signature": "@Test public void testGlobal()",
"identifier": "t... | {
"fields": [
{
"declarator": "log = Logger.getLogger(BackgroundActionRegistry.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(BackgroundActionRegistry.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "public static BackgroundActionRegistry global() {\n synchronized(lock) {\n if(null == global) {\n global = new BackgroundActionRegistry();\n }\n return global;\n }\n }",
"class_method_signature": "BackgroundActionRegistry.global()",
"cons... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_952 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/ssl/DefaultX509KeyManagerTest.java",
"identifier": "DefaultX509KeyManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testList() {\n assertTrue(new DefaultX509KeyManager().init().list().isEmpty());\n }",
"class_method_signature": "DefaultX509KeyManagerTest.testList()",
"constructor": false,
"full_signature": "@Test public void testList()",
"identifier": "testList",
"invocations":... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DefaultX509KeyManager.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DefaultX509KeyManager.class);",
"type": "Logger",
"var_name": "log"
},
{
"decl... | {
"body": "@Override\n public List<String> list() {\n final List<String> list = new ArrayList<String>();\n try {\n final javax.net.ssl.X509KeyManager manager = this.getKeystore();\n {\n final String[] aliases = manager.getClientAliases(\"RSA\", null);\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_401 | {
"fields": [],
"file": "storegate/src/test/java/ch/cyberduck/core/storegate/StoregateDeleteFeatureTest.java",
"identifier": "StoregateDeleteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractStoregateTest"
} | {
"body": "@Test\n public void testDeleteFile() throws Exception {\n final StoregateIdProvider nodeid = new StoregateIdProvider(session).withCache(cache);\n final Path room = new Path(\"/My files\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n final Path fileInR... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final StoregateSession session;",
"type": "StoregateSession",
"var_name": "session"
},
{
"declarator": "fileid",
"modifier": "private final",
"original_string":... | {
"body": "@Override\n public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {\n for(Map.Entry<Path, TransferStatus> file : files.entrySet()) {\n try {\n callback.delete(file.getKey());\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_25 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3FindFeatureTest.java",
"identifier": "S3FindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testFindUnknownBucket() throws Exception {\n final Path test = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.volume, Path.Type.directory));\n assertFalse(new S3FindFeature(session).find(test));\n }",
"class_method_signature": "S3FindFeatureTest.testFi... | {
"fields": [
{
"declarator": "containerService\n = new S3PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new S3PathContainerService();",
"type": "PathContainerService",
"var_name": "conta... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n if(file.isFile() || file.isPlaceholder()) {\n attributes.find(file);\n return true;\n }\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_544 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVFindFeatureTest.java",
"identifier": "DAVFindFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testFindAnonymous() 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"
},
{
"declarator": "cache = PathCache.empty()",
"modifier": "private",
"original_string"... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n try {\n try {\n final HttpHead request = new HttpHead(new DAVPathEncoder().encode(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_114 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3WriteFeatureTest.java",
"identifier": "S3WriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testAppendNoMultipartFound() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n assertFalse(new S3WriteFeature(session).append(new Path(container, UUID.randomUUID().toString(), EnumSet... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3WriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3WriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "pref... | {
"body": "@Override\n public Append append(final Path file, final Long length, final Cache<Path> cache) throws BackgroundException {\n if(length >= preferences.getLong(\"s3.upload.multipart.threshold\")) {\n if(preferences.getBoolean(\"s3.upload.multipart\")) {\n try {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1012 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/upload/SkipFilterTest.java",
"identifier": "SkipFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testNotFound() throws Exception {\n SkipFilter f = new SkipFilter(new DisabledUploadSymlinkResolver(), new NullSession(new Host(new TestProtocol())) {\n @Override\n public AttributedList<Path> list(final Path file, fina... | {
"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(parent.isExists()) {\n if(local.isFile()) {\n if(find.withCache(cache).find(file)) {\n if(log.isInfoEnabled()) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1442 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/SingleTransferItemFinderTest.java",
"identifier": "SingleTransferItemFinderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLocalInOptionsDownload() throws Exception {\n final CommandLineParser parser = new PosixParser();\n final String temp = System.getProperty(\"java.io.tmpdir\");\n final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{\"--downloa... | {
"fields": [
{
"declarator": "prefixer\n = new WorkdirPrefixer()",
"modifier": "private final",
"original_string": "private final WorkdirPrefixer prefixer\n = new WorkdirPrefixer();",
"type": "WorkdirPrefixer",
"var_name": "prefixer"
}
],
"file": "cli/s... | {
"body": "@Override\n public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) {\n if(input.getOptionValues(action.name()).length == 2) {\n switch(action) {\n case download:\n return new DownloadTransferItemFinder().... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_817 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/cdn/DistributionUrlProviderTest.java",
"identifier": "DistributionUrlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCustomOriginDefaultPath() {\n final Distribution distribution = new Distribution(URI.create(\"http://test.cyberduck.ch/p\"), Distribution.CUSTOM, true);\n assertEquals(\"http://test.cyberduck.ch/f\",\n new DistributionUrlProvider(distribution).toUrl(n... | {
"fields": [
{
"declarator": "distribution",
"modifier": "private final",
"original_string": "private final Distribution distribution;",
"type": "Distribution",
"var_name": "distribution"
},
{
"declarator": "containerService\n = new PathContainerService()",
... | {
"body": "@Override\n public DescriptiveUrlBag toUrl(final Path file) {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n list.add(new DescriptiveUrl(this.toUrl(file, distribution.getOrigin()), DescriptiveUrl.Type.origin,\n MessageFormat.format(LocaleFactory.localizedString(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1435 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/TerminalOptionsInputValidatorTest.java",
"identifier": "TerminalOptionsInputValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testValidate() {\n assertTrue(new TerminalOptionsInputValidator(new ProtocolFactory(Collections.singleton(new FTPProtocol() {\n @Override\n public boolean isEnabled() {\n return true;\n }\n })))\n .validate(... | {
"fields": [
{
"declarator": "console = new Console()",
"modifier": "private final",
"original_string": "private final Console console = new Console();",
"type": "Console",
"var_name": "console"
},
{
"declarator": "factory",
"modifier": "private final",
"or... | {
"body": "public boolean validate(final CommandLine input) {\n for(Option o : input.getOptions()) {\n if(Option.UNINITIALIZED == o.getArgs()) {\n continue;\n }\n if(o.hasOptionalArg()) {\n continue;\n }\n if(o.getArgs() != o.... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_860 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/io/MemorySegementingOutputStreamTest.java",
"identifier": "MemorySegementingOutputStreamTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCopy1() throws Exception {\n final ByteArrayOutputStream proxy = new ByteArrayOutputStream(20);\n final MemorySegementingOutputStream out = new MemorySegementingOutputStream(proxy, 32768);\n final byte[] content = RandomUtils.nextBytes(40500);\n out.wr... | {
"fields": [
{
"declarator": "log = Logger.getLogger(MemorySegementingOutputStream.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(MemorySegementingOutputStream.class);",
"type": "Logger",
"var_name": "log"
},
... | {
"body": "@Override\n public void close() throws IOException {\n if(close.get()) {\n log.warn(String.format(\"Skip double close of stream %s\", this));\n return;\n }\n try {\n if(buffer.size() > 0) {\n proxy.write(buffer.toByteArray());\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_1065 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/download/RenameFilterTest.java",
"identifier": "RenameFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDirectoryDownload() throws Exception {\n RenameFilter f = new RenameFilter(new DisabledDownloadSymlinkResolver(), new NullTransferSession(new Host(new TestProtocol())));\n final String name = new AsciiRandomStringService().random();\n final NullLocal local = ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(RenameFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(RenameFilter.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "core/src/main/java/c... | {
"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.isExists()) {\n fina... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_499 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSMissingFileKeysSchedulerFeatureTest.java",
"identifier": "SDSMissingFileKeysSchedulerFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testMissingKeys() throws Exception {\n final Path room = new Path(\"test\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n final byte[] content = RandomUtils.nextBytes(32769);\n final TransferStatus status = new TransferStatus();\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSMissingFileKeysSchedulerFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSMissingFileKeysSchedulerFeature.class);",
"type": "Logger",
"var_name": "log... | {
"body": "@Override\n public List<UserFileKeySetRequest> operate(final Session<SDSApiClient> session, final PasswordCallback callback, final Path file) throws BackgroundException {\n try {\n final UserAccountWrapper account = ((SDSSession) session).userAccount();\n if(!account.isEncry... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_163 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java",
"identifier": "S3SessionTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testConnectDefaultPath() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new S3Protocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n this.getClass().getResourceAsStream(\"... | {
"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_533 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVWriteFeatureTest.java",
"identifier": "DAVWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testWriteContentRange() 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(64000);\n {\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVWriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVWriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "se... | {
"body": "@Override\n public HttpResponseOutputStream<String> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final List<Header> headers = this.getHeaders(file, status);\n return this.write(file, headers, status);\n }",
"clas... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_52 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ExceptionMappingServiceTest.java",
"identifier": "S3ExceptionMappingServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHandshakeFailure() {\n final SSLHandshakeException f = new SSLHandshakeException(\"f\");\n f.initCause(new CertificateException(\"c\"));\n assertEquals(ConnectionCanceledException.class, new S3ExceptionMappingService().map(\n new ServiceException(f... | {
"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_476 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSDirectS3UploadFeatureTest.java",
"identifier": "SDSDirectS3UploadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3DirectSDSTest"
} | {
"body": "@Test\n public void testTripleCryptUploadBelowMultipartSize() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session);\n final SDSDirectS3UploadFeature feature = new SDSDirectS3UploadFeature(session, nodeid, new SDSDirectS3WriteFeature(session));\n final... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSDirectS3UploadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSDirectS3UploadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public VersionId upload(final Path file, final Local local, final BandwidthThrottle throttle, final StreamListener listener,\n final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final ThreadPool pool = ThreadPoolFa... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_925 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/worker/WriteMetadataWorkerTest.java",
"identifier": "WriteMetadataWorkerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRunEmpty() throws Exception {\n final List<Path> files = new ArrayList<Path>();\n WriteMetadataWorker worker = new WriteMetadataWorker(files, Collections.emptyMap(), false, new DisabledProgressListener()) {\n @Override\n public void cleanup(fin... | {
"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_1120 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/LimitedListProgressListenerTest.java",
"identifier": "LimitedListProgressListenerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ListCanceledException.class)\n public void testChunkLimitFolder() throws Exception {\n new LimitedListProgressListener(new DisabledProgressListener()).chunk(\n new Path(\"/container\", EnumSet.of(Path.Type.volume, Path.Type.directory)), new AttributedList<Path>() {... | {
"fields": [
{
"declarator": "preferences\n = PreferencesFactory.get()",
"modifier": "private final",
"original_string": "private final Preferences preferences\n = PreferencesFactory.get();",
"type": "Preferences",
"var_name": "preferences"
},
{
"... | {
"body": "@Override\n public void chunk(final Path folder, final AttributedList<Path> list) throws ListCanceledException {\n if(folder.isRoot()) {\n if(list.size() >= container) {\n // Allow another chunk until limit is reached again\n container += preferences.getIn... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1209 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageLifecycleFeatureTest.java",
"identifier": "GoogleStorageLifecycleFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testGetEmptyConfiguration() throws Exception {\n assertEquals(LifecycleConfiguration.empty(), new GoogleStorageLifecycleFeature(session).getConfiguration(\n new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory))));\n }",
"class_method_signature": "Goo... | {
"fields": [
{
"declarator": "log = Logger.getLogger(GoogleStorageLifecycleFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(GoogleStorageLifecycleFeature.class);",
"type": "Logger",
"var_name": "log"
},
... | {
"body": "@Override\n public LifecycleConfiguration getConfiguration(final Path file) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n if(container.isRoot()) {\n return LifecycleConfiguration.empty();\n }\n if(file.getType().contai... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_564 | {
"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 testConnectProxyHttps() 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()... | {
"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_134 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3AttributesFinderFeatureTest.java",
"identifier": "S3AttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testFindFileUsEast() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path test = new Path(container, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)... | {
"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_1032 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/TransferQueueTest.java",
"identifier": "TransferQueueTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testResize() throws Exception {\n final TransferQueue queue = new TransferQueue(1);\n final DownloadTransfer d1 = new DownloadTransfer(new Host(new TestProtocol()), new Path(\"/t1\", EnumSet.of(Path.Type.directory)), null);\n final DownloadTransfer d2 = new Downl... | {
"fields": [
{
"declarator": "log = Logger.getLogger(TransferQueue.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(TransferQueue.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "label\... | {
"body": "public void resize(int newsize) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Resize queue to %d\", newsize));\n }\n final int drained = running.drainTo(temporary);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Drained %d elements\",... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1462 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/TerminalHelpPrinterTest.java",
"identifier": "TerminalHelpPrinterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testScheme() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new AzureProtocol())));\n final ProfilePlistReader reader = new ProfilePlistReader(factory, new DeserializerFactory());\n final Profile profi... | {
"fields": [],
"file": "cli/src/main/java/ch/cyberduck/cli/TerminalHelpPrinter.java",
"identifier": "TerminalHelpPrinter",
"interfaces": "",
"methods": [
{
"class_method_signature": "TerminalHelpPrinter.TerminalHelpPrinter()",
"constructor": true,
"full_signature": "private TerminalHel... | {
"body": "protected static String getScheme(final Protocol protocol) {\n if(new BundledProtocolPredicate().test(protocol)) {\n for(String scheme :\n protocol.getSchemes()) {\n // Return first custom scheme registered\n return scheme;\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_837 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/KeychainLoginServiceTest.java",
"identifier": "KeychainLoginServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindPasswordSftp() throws Exception {\n final AtomicBoolean keychain = new AtomicBoolean(false);\n KeychainLoginService l = new KeychainLoginService(new DisabledPasswordStore() {\n @Override\n public String findLoginPassword(final Host bookmark... | {
"fields": [
{
"declarator": "log = Logger.getLogger(KeychainLoginService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(KeychainLoginService.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public void validate(final Host bookmark, final String message, final LoginCallback prompt,\n final LoginOptions options) throws LoginCanceledException, LoginFailureException {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Validate login c... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1198 | {
"fields": [],
"file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageSearchFeatureTest.java",
"identifier": "GoogleStorageSearchFeatureTest",
"interfaces": "",
"superclass": "extends AbstractGoogleStorageTest"
} | {
"body": "@Test\n public void testSearchInBucket() throws Exception {\n final String name = new AlphanumericRandomStringService().random();\n final Path bucket = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path file = new GoogleStorageTouchFeatu... | {
"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 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 GoogleStorageObjectListService(session).list(workdir, list... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1177 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/DescriptiveUrlBagTest.java",
"identifier": "DescriptiveUrlBagTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFind() {\n final DescriptiveUrlBag list = new DescriptiveUrlBag();\n final DescriptiveUrl url = new DescriptiveUrl(URI.create(\"http://example.net\"));\n list.add(url);\n assertEquals(DescriptiveUrl.EMPTY, list.find(DescriptiveUrl.Type.provider));\n ... | {
"fields": [
{
"declarator": "serialVersionUID = 6056908616987839368L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 6056908616987839368L;",
"type": "long",
"var_name": "serialVersionUID"
}
],
"file": "core/src/main/jav... | {
"body": "public DescriptiveUrl find(DescriptiveUrl.Type type) {\n for(DescriptiveUrl url : this) {\n if(url.getType().equals(type)) {\n return url;\n }\n }\n return DescriptiveUrl.EMPTY;\n }",
"class_method_signature": "DescriptiveUrlBag.find(Descriptiv... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_972 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/synchronization/TimestampComparisonServiceTest.java",
"identifier": "TimestampComparisonServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompareEqual() {\n ComparisonService s = new TimestampComparisonService(TimeZone.getDefault());\n final long timestamp = Calendar.getInstance(TimeZone.getDefault()).getTimeInMillis();\n assertEquals(Comparison.equal, s.compare(new PathAttributes() {\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(TimestampComparisonService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(TimestampComparisonService.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Comparison compare(final Attributes remote, final Attributes local) {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Compare timestamp for %s with %s\", remote, local));\n }\n if(-1 == remote.getModificationDate()) {\n log.warn(Stri... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_421 | {
"fields": [],
"file": "manta/src/test/java/ch/cyberduck/core/manta/MantaListServiceTest.java",
"identifier": "MantaListServiceTest",
"interfaces": "",
"superclass": "extends AbstractMantaTest"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testListNotFoundFolder() throws Exception {\n new MantaListService(session).list(new Path(\n new MantaHomeFinderFeature(session).find(), \"notfound\", EnumSet.of(Path.Type.directory)), new DisabledListProgressListener());\n }",... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final MantaSession session;",
"type": "MantaSession",
"var_name": "session"
}
],
"file": "manta/src/main/java/ch/cyberduck/core/manta/MantaListService.java",
"identifier": "Man... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n if(directory.isRoot()) {\n return new AttributedList<Path>(Collections.singletonList(\n new MantaAccountHomeInfo(session.getHost().getCr... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_358 | {
"fields": [],
"file": "nio/src/test/java/ch/cyberduck/core/nio/LocalQuotaFeatureTest.java",
"identifier": "LocalQuotaFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void get() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback());\n session.login(Proxy.DIRE... | {
"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/LocalQuotaFeature.java",
"identifier": "LocalQ... | {
"body": "@Override\n public Space get() throws BackgroundException {\n final Path home = new DefaultHomeFinderService(session).find();\n try {\n final FileStore store = Files.getFileStore(session.toPath(home));\n return new Space(store.getTotalSpace() - store.getUnallocatedSpa... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_708 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/IOKitSleepPreventerTest.java",
"identifier": "IOKitSleepPreventerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRelease() {\n final SleepPreventer s = new IOKitSleepPreventer();\n final String lock = s.lock();\n Assert.assertNotNull(lock);\n s.release(lock);\n }",
"class_method_signature": "IOKitSleepPreventerTest.testRelease()",
"constructor": false,
"... | {
"fields": [
{
"declarator": "reason\n = PreferencesFactory.get().getProperty(\"application.name\")",
"modifier": "private static final",
"original_string": "private static final String reason\n = PreferencesFactory.get().getProperty(\"application.name\");",
"type": ... | {
"body": "@Override\n public void release(final String id) {\n synchronized(lock) {\n this.releaseAssertion(id);\n }\n }",
"class_method_signature": "IOKitSleepPreventer.release(final String id)",
"constructor": false,
"full_signature": "@Override public void release(final String... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_821 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/cdn/DistributionTest.java",
"identifier": "DistributionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCnames() {\n assertNotNull(new Distribution(Distribution.DOWNLOAD, false).getCNAMEs());\n }",
"class_method_signature": "DistributionTest.testCnames()",
"constructor": false,
"full_signature": "@Test public void testCnames()",
"identifier": "testCnames",
"invo... | {
"fields": [
{
"declarator": "id",
"modifier": "private",
"original_string": "private String id;",
"type": "String",
"var_name": "id"
},
{
"declarator": "etag",
"modifier": "private",
"original_string": "private String etag;",
"type": "String",
... | {
"body": "public String[] getCNAMEs() {\n if(null == cnames) {\n return new String[]{};\n }\n return cnames;\n }",
"class_method_signature": "Distribution.getCNAMEs()",
"constructor": false,
"full_signature": "public String[] getCNAMEs()",
"identifier": "getCNAMEs",
"invo... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1474 | {
"fields": [],
"file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxLockFeatureTest.java",
"identifier": "DropboxLockFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDropboxTest"
} | {
"body": "@Test(expected = InteroperabilityException.class)\n public void testLock() throws Exception {\n final DropboxTouchFeature touch = new DropboxTouchFeature(session);\n final Path file = touch.touch(new Path(new Path(new DropboxHomeFinderFeature(session).find(), \"Projects\", EnumSet.of(Path.... | {
"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_1024 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/DownloadTransferTest.java",
"identifier": "DownloadTransferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testChildrenEmpty() 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, null);\n final NullSession session = new NullSession(new Host(new TestProto... | {
"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_122 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3VersioningFeatureTest.java",
"identifier": "S3VersioningFeatureTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testSetConfiguration() throws Exception {\n final Path container = new Path(UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory, Path.Type.volume));\n new S3DirectoryFeature(session, new S3WriteFeature(session, new S3DisabledMultipartService())).mkdir(container... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3VersioningFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3VersioningFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarat... | {
"body": "@Override\n public void setConfiguration(final Path file, final PasswordCallback prompt, final VersioningConfiguration configuration) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n try {\n final VersioningConfiguration current = this... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_572 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVReadFeatureTest.java",
"identifier": "DAVReadFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testReadRangeUnknownLength() throws Exception {\n final Path test = new Path(new DefaultHomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n session.getFeature(Touch.class).touch(test, new TransferStatus());\n final Loca... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVReadFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVReadFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "sess... | {
"body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n final List<Header> headers = new ArrayList<Header>(this.headers());\n if(status.isAppend()) {\n final HttpRange range = HttpRange.w... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_13 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3UrlProviderTest.java",
"identifier": "S3UrlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToHttpURL() {\n final S3Session session = new S3Session(new Host(new S3Protocol() {\n @Override\n public String getAuthorization() {\n return S3Protocol.AuthenticationHeaderSignatureVersion.AWS2.name();\n }\n }, new S3... | {
"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_437 | {
"fields": [],
"file": "manta/src/test/java/ch/cyberduck/core/manta/MantaDirectoryFeatureTest.java",
"identifier": "MantaDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractMantaTest"
} | {
"body": "@Test\n public void testMkdir() throws Exception {\n final Path target = new MantaDirectoryFeature(session).mkdir(randomDirectory(), null, null);\n final PathAttributes found = new MantaAttributesFinderFeature(session).find(target);\n assertNotEquals(Permission.EMPTY, found.getPermi... | {
"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/MantaDirectoryFeature.java",
"identifier":... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n session.getClient().putDirectory(folder.getAbsolute());\n }\n catch(MantaException e) {\n throw new MantaExceptionMappingSe... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_964 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/PathTest.java",
"identifier": "PathTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDictionaryFile() {\n Path path = new Path(\"/path\", EnumSet.of(Path.Type.file));\n assertEquals(path, new PathDictionary().deserialize((path.serialize(SerializerFactory.get()))));\n }",
"class_method_signature": "PathTest.testDictionaryFile()",
"constructor"... | {
"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_1161 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/threading/BackgroundCallableTest.java",
"identifier": "BackgroundCallableTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCallReturnValueFailureRetry() {\n final Object expected = new Object();\n\n final AbstractBackgroundAction<Object> action = new AbstractBackgroundAction<Object>() {\n final AtomicBoolean exception = new AtomicBoolean();\n\n @Override\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(BackgroundCallable.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(BackgroundCallable.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator... | {
"body": "@Override\n public T call() {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Running background action %s\", action));\n }\n final ActionOperationBatcher autorelease = ActionOperationBatcherFactory.get();\n if(action.isCanceled()) {\n // Cancel... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1248 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2CopyFeatureTest.java",
"identifier": "B2CopyFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testCopy() throws Exception {\n final B2FileidProvider fileid = new B2FileidProvider(session).withCache(cache);\n final Path container = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final String name = new AlphanumericRandomS... | {
"fields": [
{
"declarator": "containerService\n = new B2PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new B2PathContainerService();",
"type": "PathContainerService",
"var_name": "conta... | {
"body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final B2FileResponse response = session.getClient().copyFile(fileid.getFileid(source, new DisabledListProgressListen... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_525 | {
"fields": [],
"file": "webdav/src/test/java/ch/cyberduck/core/dav/DAVAttributesFinderFeatureTest.java",
"identifier": "DAVAttributesFinderFeatureTest",
"interfaces": "",
"superclass": "extends AbstractDAVTest"
} | {
"body": "@Test\n public void testCustomModified_NotSet() {\n final DAVAttributesFinderFeature f = new DAVAttributesFinderFeature(null);\n final DavResource mock = mock(DavResource.class);\n\n Map<QName, String> map = new HashMap<>();\n final Date modified = new DateTime(\"2018-11-01T1... | {
"fields": [
{
"declarator": "log = Logger.getLogger(DAVAttributesFinderFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(DAVAttributesFinderFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "protected PathAttributes toAttributes(final DavResource resource) {\n final PathAttributes attributes = new PathAttributes();\n final Map<QName, String> properties = resource.getCustomPropsNS();\n if(null != properties && properties.containsKey(DAVTimestampFeature.LAST_MODIFIED_CUSTOM_... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_175 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3ThresholdUploadServiceTest.java",
"identifier": "S3ThresholdUploadServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test(expected = NotfoundException.class)\n public void testUploadInvalidContainer() throws Exception {\n final S3ThresholdUploadService m = new S3ThresholdUploadService(session,\n 5 * 1024L\n );\n final Path container = new Path(\"nosuchcontainer.cyberduck.ch\", EnumSet.... | {
"fields": [
{
"declarator": "log = Logger.getLogger(S3ThresholdUploadService.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(S3ThresholdUploadService.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public StorageObject upload(final Path file, Local local, final BandwidthThrottle throttle, final StreamListener listener,\n final TransferStatus status, final ConnectionCallback prompt) throws BackgroundException {\n if(status.getLength() >= threshold) ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1073 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/download/PathPriorityComparatorTest.java",
"identifier": "PathPriorityComparatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCompare() {\n assertEquals(-1, new PathPriorityComparator().compare(\n new Path(\"/t\", EnumSet.of(Path.Type.directory)),\n new Path(\"/t\", EnumSet.of(Path.Type.file))\n ));\n assertEquals(1, new PathPriorityComparator().compare... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/transfer/download/PathPriorityComparator.java",
"identifier": "PathPriorityComparator",
"interfaces": "implements Comparator<Path>",
"methods": [
{
"class_method_signature": "PathPriorityComparator.compare(final Path o1, final Path o2)",
... | {
"body": "@Override\n public int compare(final Path o1, final Path o2) {\n if(o1.isDirectory() && o2.isDirectory()) {\n return 0;\n }\n if(o1.isFile() && o2.isFile()) {\n return 0;\n }\n if(o1.isDirectory()) {\n return -1;\n }\n if(... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_876 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/shared/DefaultFindFeatureTest.java",
"identifier": "DefaultFindFeatureTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFindPlaceholder() throws Exception {\n assertTrue(new DefaultFindFeature(new NullSession(new Host(new TestProtocol())) {\n @Override\n public AttributedList<Path> list(final Path file, final ListProgressListener listener) {\n return new... | {
"fields": [],
"file": "core/src/main/java/ch/cyberduck/core/shared/DefaultFindFeature.java",
"identifier": "DefaultFindFeature",
"interfaces": "implements Find",
"methods": [
{
"class_method_signature": "DefaultFindFeature.DefaultFindFeature(final Session<?> session)",
"constructor": true,
... | {
"body": "@Override\n public boolean find(final Path file) throws BackgroundException {\n if(file.isRoot()) {\n return true;\n }\n try {\n final Path found = this.search(file);\n return found != null;\n }\n catch(NotfoundException e) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1423 | {
"fields": [],
"file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftDirectoryFeatureTest.java",
"identifier": "SwiftDirectoryFeatureTest",
"interfaces": "",
"superclass": "extends AbstractSwiftTest"
} | {
"body": "@Test\n public void testCreatePlaceholder() throws Exception {\n final AtomicBoolean put = new AtomicBoolean();\n final String name = UUID.randomUUID().toString();\n session.withListener(new TranscriptListener() {\n @Override\n public void log(final Type reques... | {
"fields": [
{
"declarator": "containerService\n = new PathContainerService()",
"modifier": "private final",
"original_string": "private final PathContainerService containerService\n = new PathContainerService();",
"type": "PathContainerService",
"var_name": "container... | {
"body": "@Override\n public Path mkdir(final Path folder, final String region, final TransferStatus status) throws BackgroundException {\n try {\n if(containerService.isContainer(folder)) {\n // Create container at top level\n session.getClient().createContainer(re... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_899 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/ArchiveTest.java",
"identifier": "ArchiveTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCommand() throws FactoryException {\n assertEquals(\"cd /a; zip -qr /a/b.zip b\",\n Archive.ZIP.getCompressCommand(new Path(\"/a\", EnumSet.of(Path.Type.directory)),\n Collections.singletonList(new Path(\"/a/b\", EnumSet.of(Path.Type.f... | {
"fields": [
{
"declarator": "log = Logger.getLogger(Archive.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(Archive.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "preferences\n ... | {
"body": "public String getCompressCommand(final Path workdir, final List<Path> files) {\n final StringBuilder archive = new StringBuilder();\n if(files.size() == 1) {\n archive.append(this.escape(files.get(0).getAbsolute()));\n }\n else {\n // Use default filename\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_1136 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/AbstractHostCollectionTest.java",
"identifier": "AbstractHostCollectionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLookup() {\n final AbstractHostCollection c = new AbstractHostCollection() {\n };\n final Host bookmark = new Host(new TestProtocol());\n assertFalse(c.find(bookmark));\n assertNull(c.lookup(bookmark.getUuid()));\n c.add(bookmark);\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(AbstractHostCollection.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(AbstractHostCollection.class);",
"type": "Logger",
"var_name": "log"
},
{
"de... | {
"body": "public Host lookup(final String uuid) {\n return this.stream().filter(h -> h.getUuid().equals(uuid)).findFirst().orElse(null);\n }",
"class_method_signature": "AbstractHostCollection.lookup(final String uuid)",
"constructor": false,
"full_signature": "public Host lookup(final String uuid)",... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_933 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/AttributedListTest.java",
"identifier": "AttributedListTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEquals() {\n final AttributedList<Path> list1 = new AttributedList<Path>();\n final AttributedList<Path> list2 = new AttributedList<Path>();\n final Path a = new Path(\"/a\", EnumSet.of(Path.Type.directory));\n assertTrue(list1.add(a));\n assert... | {
"fields": [
{
"declarator": "log = Logger.getLogger(AttributedList.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(AttributedList.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "EMPT... | {
"body": "@Override\n public boolean equals(final Object o) {\n if(this == o) {\n return true;\n }\n if(o == null || getClass() != o.getClass()) {\n return false;\n }\n final AttributedList<?> that = (AttributedList<?>) o;\n return Objects.equals(imp... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_460 | {
"fields": [],
"file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSSharesUrlProviderTest.java",
"identifier": "SDSSharesUrlProviderTest",
"interfaces": "",
"superclass": "extends AbstractSDSTest"
} | {
"body": "@Test\n public void testEncrypted() throws Exception {\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new Path(\"test\", EnumSet.of(Path.Type.directory, Path.Type.volume, Path.Type.triplecrypt));\n final Path test = new SDSTou... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SDSSharesUrlProvider.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SDSSharesUrlProvider.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public DescriptiveUrl toDownloadUrl(final Path file, CreateDownloadShareRequest options, final PasswordCallback callback) throws BackgroundException {\n try {\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Create download share for %s\", file));\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_44 | {
"fields": [],
"file": "s3/src/test/java/ch/cyberduck/core/s3/S3MultipartUploadServiceTest.java",
"identifier": "S3MultipartUploadServiceTest",
"interfaces": "",
"superclass": "extends AbstractS3Test"
} | {
"body": "@Test\n public void testAppendNoPartCompleted() throws Exception {\n final Path container = new Path(\"test-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n 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_319 | {
"fields": [],
"file": "azure/src/test/java/ch/cyberduck/core/azure/AzureObjectListServiceTest.java",
"identifier": "AzureObjectListServiceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testListEmptyFolder() throws Exception {\n final Host host = new Host(new AzureProtocol(), \"kahy9boj3eib.blob.core.windows.net\", new Credentials(\n System.getProperties().getProperty(\"azure.account\"), System.getProperties().getProperty(\"azure.key\")\n ))... | {
"fields": [
{
"declarator": "session",
"modifier": "private final",
"original_string": "private final AzureSession session;",
"type": "AzureSession",
"var_name": "session"
},
{
"declarator": "context",
"modifier": "private final",
"original_string": "priva... | {
"body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final CloudBlobContainer container = session.getClient().getContainerReference(containerService.getContainer(directory).getName());\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_749 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java",
"identifier": "FinderLocalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMkdir() throws Exception {\n FinderLocal l = new FinderLocal(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n new DefaultLocalDirectoryFeature().mkdir(l);\n assertTrue(l.exists());\n new DefaultLocalDirectoryFeature().mkdir(l);\... | {
"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_948 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/idna/PunycodeConverterTest.java",
"identifier": "PunycodeConverterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConvert() {\n assertEquals(\"host.localdomain\", new PunycodeConverter().convert(\"host.localdomain\"));\n assertNull(new PunycodeConverter().convert(null));\n assertEquals(\"\", new PunycodeConverter().convert(\"\"));\n assertEquals(\"xn--4ca\", new P... | {
"fields": [
{
"declarator": "log = Logger.getLogger(PunycodeConverter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(PunycodeConverter.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "core/src/m... | {
"body": "public String convert(final String hostname) {\n if(!PreferencesFactory.get().getBoolean(\"connection.hostname.idn\")) {\n return StringUtils.strip(hostname);\n }\n if(StringUtils.isNotEmpty(hostname)) {\n try {\n // Convenience function that implem... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1008 | {
"fields": [],
"file": "core/src/test/java/ch/cyberduck/core/transfer/upload/RenameExistingFilterTest.java",
"identifier": "RenameExistingFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTemporaryFileUpload() throws Exception {\n final Path file = new Path(\"/t\", EnumSet.of(Path.Type.file));\n final AtomicBoolean found = new AtomicBoolean();\n final AtomicInteger moved = new AtomicInteger();\n final Find find = new Find() {\n ... | {
"fields": [
{
"declarator": "log = Logger.getLogger(RenameExistingFilter.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(RenameExistingFilter.class);",
"type": "Logger",
"var_name": "log"
},
{
"declar... | {
"body": "@Override\n public void apply(final Path file, final Local local, final TransferStatus status,\n final ProgressListener listener) throws BackgroundException {\n // Rename existing file before putting new file in place\n if(status.isExists()) {\n Path rename;... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1458 | {
"fields": [],
"file": "cli/src/test/java/ch/cyberduck/cli/LinuxTerminalPreferencesTest.java",
"identifier": "LinuxTerminalPreferencesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void setDefaults() {\n final LinuxTerminalPreferences prefs = new LinuxTerminalPreferences();\n prefs.load();\n prefs.setLogging();\n prefs.setFactories();\n prefs.setDefaults();\n assertEquals(\"NativePRNGNonBlocking\", prefs.getProperty(\"connec... | {
"fields": [
{
"declarator": "log = Logger.getLogger(LinuxTerminalPreferences.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(LinuxTerminalPreferences.class);",
"type": "Logger",
"var_name": "log"
}
],
"file... | {
"body": "@Override\n protected void setDefaults() {\n super.setDefaults();\n\n try {\n final Process echo = Runtime.getRuntime().exec(new String[]{\"/bin/sh\", \"-c\", \"echo ~\"});\n this.setDefault(\"local.user.home\", StringUtils.strip(IOUtils.toString(echo.getInputStream()... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_227 | {
"fields": [],
"file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPMlsdListResponseReaderTest.java",
"identifier": "FTPMlsdListResponseReaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParsePermissions() throws Exception {\n Path path = new Path(\n \"/www\", EnumSet.of(Path.Type.directory));\n\n String[] replies = new String[]{\n \"Type=dir;Modify=20171202151917;Unique=04c800e7ef006c54;Perm=cmpdfe; progrocklists\",\n }... | {
"fields": [
{
"declarator": "log = Logger.getLogger(FTPMlsdListResponseReader.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(FTPMlsdListResponseReader.class);",
"type": "Logger",
"var_name": "log"
}
],
"fi... | {
"body": "@Override\n public AttributedList<Path> read(final Path directory, final List<String> replies, final ListProgressListener listener) throws FTPInvalidListException {\n final AttributedList<Path> children = new AttributedList<Path>();\n // At least one entry successfully parsed\n bool... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_677 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/resources/NSImageIconCacheTest.java",
"identifier": "NSImageIconCacheTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFolderIcon32() {\n final NSImage icon = new NSImageIconCache().folderIcon(32);\n assertNotNull(icon);\n assertTrue(icon.isValid());\n assertFalse(icon.isTemplate());\n assertEquals(32, icon.size().width.intValue());\n assertEquals(32, ico... | {
"fields": [
{
"declarator": "log = Logger.getLogger(NSImageIconCache.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(NSImageIconCache.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "... | {
"body": "@Override\n public NSImage folderIcon(final Integer size) {\n NSImage folder = this.iconNamed(\"NSFolder\", size);\n if(null == folder) {\n return this.iconNamed(\"NSFolder\", size);\n }\n return folder;\n }",
"class_method_signature": "NSImageIconCache.folder... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1321 | {
"fields": [],
"file": "ssh/src/test/java/ch/cyberduck/core/sftp/auth/SFTPPublicKeyAuthenticationTest.java",
"identifier": "SFTPPublicKeyAuthenticationTest",
"interfaces": "",
"superclass": "extends AbstractSFTPTest"
} | {
"body": "@Test\n public void testAuthenticateKeyNoPassword() throws Exception {\n final Local key = new Local(System.getProperty(\"java.io.tmpdir\"), UUID.randomUUID().toString());\n try {\n session.getHost().getCredentials().setIdentity(key);\n new DefaultLocalTouchFeature().... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SFTPPublicKeyAuthentication.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SFTPPublicKeyAuthentication.class);",
"type": "Logger",
"var_name": "log"
},
{... | {
"body": "@Override\n public Boolean authenticate(final Host bookmark, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {\n final Credentials credentials = bookmark.getCredentials();\n if(credentials.isPublicKeyAuthentication()) {\n if(log.isDebugEnabled... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_1264 | {
"fields": [],
"file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2LargeUploadWriteFeatureTest.java",
"identifier": "B2LargeUploadWriteFeatureTest",
"interfaces": "",
"superclass": "extends AbstractB2Test"
} | {
"body": "@Test\n public void testWriteLowerMinimumSize() throws Exception {\n final B2FileidProvider fileid = new B2FileidProvider(session).withCache(cache);\n final B2LargeUploadWriteFeature feature = new B2LargeUploadWriteFeature(session, fileid);\n final Path container = new Path(\"test-c... | {
"fields": [
{
"declarator": "log = Logger.getLogger(B2LargeUploadWriteFeature.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(B2LargeUploadWriteFeature.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public StatusOutputStream<VersionId> write(final Path file, final TransferStatus status, final ConnectionCallback callback) {\n final LargeUploadOutputStream proxy = new LargeUploadOutputStream(file, status);\n return new HttpResponseOutputStream<VersionId>(new MemorySegementin... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_698 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/proxy/SystemConfigurationProxyTest.java",
"identifier": "SystemConfigurationProxyTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFind() {\n final SystemConfigurationProxy proxy = new SystemConfigurationProxy();\n assertEquals(Proxy.Type.DIRECT, proxy.find(new Host(new TestProtocol(), \"cyberduck.io\")).getType());\n }",
"class_method_signature": "SystemConfigurationProxyTest.testFind()",... | {
"fields": [
{
"declarator": "log = Logger.getLogger(SystemConfigurationProxy.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = Logger.getLogger(SystemConfigurationProxy.class);",
"type": "Logger",
"var_name": "log"
},
{
... | {
"body": "@Override\n public Proxy find(final Host target) {\n if(!preferences.getBoolean(\"connection.proxy.enable\")) {\n return Proxy.DIRECT;\n }\n final String route = this.findNative(provider.get(target));\n if(null == route) {\n if(log.isInfoEnabled()) {\n ... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_362 | {
"fields": [],
"file": "googledrive/src/test/java/ch/cyberduck/core/googledrive/DriveProtocolTest.java",
"identifier": "DriveProtocolTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPrefix() {\n assertEquals(\"ch.cyberduck.core.googledrive.Drive\", new DriveProtocol().getPrefix());\n }",
"class_method_signature": "DriveProtocolTest.testPrefix()",
"constructor": false,
"full_signature": "@Test public void testPrefix()",
"identifier": "testPr... | {
"fields": [],
"file": "googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveProtocol.java",
"identifier": "DriveProtocol",
"interfaces": "",
"methods": [
{
"class_method_signature": "DriveProtocol.getIdentifier()",
"constructor": false,
"full_signature": "@Override public Strin... | {
"body": "@Override\n public String getPrefix() {\n return String.format(\"%s.%s\", DriveProtocol.class.getPackage().getName(), \"Drive\");\n }",
"class_method_signature": "DriveProtocol.getPrefix()",
"constructor": false,
"full_signature": "@Override public String getPrefix()",
"identifier": "g... | {
"created": "1/20/2017 2:16:34 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 79564911,
"size": null,
"stargazer_count": null,
"stars": 706,
"updates": "2020-01-27T14:40:15+00:00",
"url": "https://github.com/iterate-ch/cyber... |
79564911_732 | {
"fields": [],
"file": "core/dylib/src/test/java/ch/cyberduck/core/local/LaunchServicesFileDescriptorTest.java",
"identifier": "LaunchServicesFileDescriptorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetKindWithoutExtension() {\n assertNotNull(new LaunchServicesFileDescriptor().getKind(\"txt\"));\n }",
"class_method_signature": "LaunchServicesFileDescriptorTest.testGetKindWithoutExtension()",
"constructor": false,
"full_signature": "@Test public void testGetKi... | {
"fields": [],
"file": "core/dylib/src/main/java/ch/cyberduck/core/local/LaunchServicesFileDescriptor.java",
"identifier": "LaunchServicesFileDescriptor",
"interfaces": "",
"methods": [
{
"class_method_signature": "LaunchServicesFileDescriptor.getKind(final String filename)",
"constructor": f... | {
"body": "@Override\n public String getKind(final String filename) {\n if(StringUtils.isBlank(Path.getExtension(filename))) {\n final String kind = this.kind(filename);\n if(StringUtils.isBlank(kind)) {\n return LocaleFactory.localizedString(\"Unknown\");\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.