id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
56258575_10
{ "fields": [], "file": "cassandra-diagnostics-core/src/test/java/io/smartcat/cassandra/diagnostics/api/HttpHandlerTest.java", "identifier": "HttpHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void get_version() {\n Configuration config = Configuration.getDefaultConfiguration();\n DiagnosticsApi mxBean = mock(DiagnosticsApi.class);\n when(mxBean.getVersion()).thenReturn(\"1.2.3\");\n HttpHandler httpApi = new HttpHandler(config, mxBean);\n IHT...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(HttpHandler.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(HttpHandler.class);", "type": "Logger", "var_name": "logger" }, { "d...
{ "body": "@Override\n public Response serve(IHTTPSession session) {\n if (!apiAuthEnabled || hasValidCredentials(session)) {\n return respond(session);\n }\n\n return newFixedLengthResponse(Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, \"Invalid API key\\r\\n\");\n }", "class_me...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 56258575, "size": 1233, "stargazer_count": 52, "stars": null, "updates": null, "url": "https://github.com/smartcat-labs/cassandra-diagnostics" }
56258575_47
{ "fields": [], "file": "cassandra-diagnostics-core/src/test/java/io/smartcat/cassandra/diagnostics/module/slowquery/SlowQueryLogDeciderTest.java", "identifier": "SlowQueryLogDeciderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void do_not_log_query_when_execution_below_default_threshold() throws Exception {\n Map<String, Object> options = new HashMap<>();\n SlowQueryLogDecider slowQueryLogDecider = buildSlowLogDecider(options);\n Query query = buildQuery(24, StatementType.SELECT, \"keyspace...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SlowQueryModule.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(SlowQueryModule.class);", "type": "Logger", "var_name": "logger" }, { ...
{ "body": "public boolean isForReporting(Query query) {\n if (executionTimeForLogging(query.executionTimeInMilliseconds()) && tableForLogging(query)\n && typeForLogging(query)) {\n return true;\n }\n\n return false;\n }", "class_method_signature": "SlowQueryLogDecid...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 56258575, "size": 1233, "stargazer_count": 52, "stars": null, "updates": null, "url": "https://github.com/smartcat-labs/cassandra-diagnostics" }
1421658_15
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void signIn_OAuth1Provider() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLocator.add...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_42
{ "fields": [ { "declarator": "connectionFactoryLocator = new ConnectionFactoryRegistry()", "modifier": "private", "original_string": "private ConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();", "type": "ConnectionFactoryRegistry", "var_name": "con...
{ "body": "@Test\n\tpublic void getConnectionFactoryByApi() {\n\t\tConnectionFactory<TestTwitterApi> connectionFactory = connectionFactoryLocator.getConnectionFactory(TestTwitterApi.class);\n\t\tassertSame(twitterConnectionFactory, connectionFactory);\n\t\tassertEquals(\"twitter\", connectionFactory.getProviderId());...
{ "fields": [ { "declarator": "connectionFactories = new HashMap<String, ConnectionFactory<?>>()", "modifier": "private final", "original_string": "private final Map<String, ConnectionFactory<?>> connectionFactories = new HashMap<String, ConnectionFactory<?>>();", "type": "Map<String, Conn...
{ "body": "public ConnectionFactory<?> getConnectionFactory(String providerId) {\n\t\tConnectionFactory<?> connectionFactory = connectionFactories.get(providerId);\n\t\tif (connectionFactory == null) {\n\t\t\tthrow new IllegalArgumentException(\"No connection factory for service provider '\" + providerId + \"' is reg...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_54
{ "fields": [], "file": "spring-social-security/src/test/java/org/springframework/social/security/SocialAuthenticationProviderTest.java", "identifier": "SocialAuthenticationProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void supports() {\n\t\tSocialAuthenticationProvider provider = new SocialAuthenticationProvider(null, null);\n\t\tassertTrue(provider.supports(SocialAuthenticationToken.class));\n\t\tassertFalse(provider.supports(Authentication.class));\n\t}", "class_method_signature": "SocialAuthenticati...
{ "fields": [ { "declarator": "usersConnectionRepository", "modifier": "private", "original_string": "private UsersConnectionRepository usersConnectionRepository;", "type": "UsersConnectionRepository", "var_name": "usersConnectionRepository" }, { "declarator": "userDeta...
{ "body": "public boolean supports(Class<? extends Object> authentication) {\n\t\treturn SocialAuthenticationToken.class.isAssignableFrom(authentication);\n\t}", "class_method_signature": "SocialAuthenticationProvider.supports(Class<? extends Object> authentication)", "constructor": false, "full_signature": "pu...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_39
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/connect/ConnectionKeyTest.java", "identifier": "ConnectionKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void toString_providerIdAndProviderUserId() {\n\t\tConnectionKey key = new ConnectionKey(\"provider1\", \"providerUser1\");\n\t\tassertEquals(\"provider1:providerUser1\", key.toString());\n\t}", "class_method_signature": "ConnectionKeyTest.toString_providerIdAndProviderUserId()", "const...
{ "fields": [ { "declarator": "providerId", "modifier": "private final", "original_string": "private final String providerId;", "type": "String", "var_name": "providerId" }, { "declarator": "providerUserId", "modifier": "private final", "original_string": "p...
{ "body": "public String toString() {\n\t\treturn providerId + \":\" + providerUserId;\n\t}", "class_method_signature": "ConnectionKey.toString()", "constructor": false, "full_signature": "public String toString()", "identifier": "toString", "invocations": [], "modifiers": "public", "parameters": "()", ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_0
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth10() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockRequest.setServerName(\"somesite.com\");\n...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_19
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"PENDING RESOLUTION OF https://jira.spring.io/browse/SPR-14790?focusedCommentId=133547&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133547\")\n\tpublic void signIn_OAuth2Provider() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator ...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_23
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void createConnectController_setApplicationUrl() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionRepository connectionRepository = new InMemoryUsersConnectionRepository(connectionFactoryLocator).createConnectionRep...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "public void setApplicationUrl(String applicationUrl) {\n\t\tthis.applicationUrl = applicationUrl;\n\t}", "class_method_signature": "ConnectController.setApplicationUrl(String applicationUrl)", "constructor": false, "full_signature": "public void setApplicationUrl(String applicationUrl)", "identifie...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_35
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/connect/ConnectionKeyTest.java", "identifier": "ConnectionKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void equals() {\n\t\tConnectionKey key1 = new ConnectionKey(\"provider1\", \"providerUser1\");\n\t\tConnectionKey key2 = new ConnectionKey(\"provider1\", \"providerUser1\");\n\n\t\t// reflexive\n\t\tassertEquals(key1, key1);\n\t\t\n\t\t// symmetric\n\t\tassertEquals(key1, key2);\n\t\tassert...
{ "fields": [ { "declarator": "providerId", "modifier": "private final", "original_string": "private final String providerId;", "type": "String", "var_name": "providerId" }, { "declarator": "providerUserId", "modifier": "private final", "original_string": "p...
{ "body": "public boolean equals(Object o) {\n\t\tif (!(o instanceof ConnectionKey)) {\n\t\t\treturn false;\n\t\t}\n\t\tConnectionKey other = (ConnectionKey) o;\n\t\tboolean sameProvider = providerId.equals(other.providerId);\n\t\treturn providerUserId != null ? sameProvider && providerUserId.equals(other.providerUse...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_34
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/oauth1/OAuth1RequestInterceptorTest.java", "identifier": "OAuth1RequestInterceptorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void beforeExecution() throws Exception {\n\t\tOAuth1RequestInterceptor interceptor = new OAuth1RequestInterceptor(new OAuth1Credentials(\"consumer_key\", \"consumer_secret\", \"access_token\", \"token_secret\"));\n\t\tbyte[] body = \"status=Hello+there\".getBytes();\n\t\tMockHttpServletReq...
{ "fields": [ { "declarator": "signingUtils", "modifier": "private final", "original_string": "private final SigningSupport signingUtils;", "type": "SigningSupport", "var_name": "signingUtils" }, { "declarator": "oauth1Credentials", "modifier": "private final", ...
{ "body": "public ClientHttpResponse intercept(final HttpRequest request, final byte[] body, ClientHttpRequestExecution execution) throws IOException {\n\t\tHttpRequest protectedResourceRequest = new HttpRequestDecorator(request);\n\t\tprotectedResourceRequest.getHeaders().add(\"Authorization\", getAuthorizationHeade...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_22
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void oauth2Callback_multipleMatchingUsers() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi2> connectionFactory2 = new StubOAuth2ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFac...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_18
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void oauth1Callback_multipleMatchingUsers() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFac...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_38
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/connect/ConnectionKeyTest.java", "identifier": "ConnectionKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void hashCode_providerIdAndProviderUserId() {\n\t\tConnectionKey key = new ConnectionKey(\"provider1\", \"providerUser1\");\n\t\tassertEquals(\"provider1\".hashCode() + \"providerUser1\".hashCode(), key.hashCode());\n\t}", "class_method_signature": "ConnectionKeyTest.hashCode_providerIdAn...
{ "fields": [ { "declarator": "providerId", "modifier": "private final", "original_string": "private final String providerId;", "type": "String", "var_name": "providerId" }, { "declarator": "providerUserId", "modifier": "private final", "original_string": "p...
{ "body": "public int hashCode() {\n\t\tint hashCode = providerId.hashCode();\n\t\treturn providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode;\n\t}", "class_method_signature": "ConnectionKey.hashCode()", "constructor": false, "full_signature": "public int hashCode()", "identifier": "hashC...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_1
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth10_withContextPath() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockRequest.setServerName(\"so...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_55
{ "fields": [], "file": "spring-social-security/src/test/java/org/springframework/social/security/SocialAuthenticationProviderTest.java", "identifier": "SocialAuthenticationProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void toUserId() {\n\t\tUsersConnectionRepository repo = mock(UsersConnectionRepository.class);\n\t\tSocialAuthenticationProvider provider = new SocialAuthenticationProvider(repo, null);\n\t\tConnection<Object> dummyConnection1 = dummyConnection(\"providerUser1\");\n\t\tConnection<Object> du...
{ "fields": [ { "declarator": "usersConnectionRepository", "modifier": "private", "original_string": "private UsersConnectionRepository usersConnectionRepository;", "type": "UsersConnectionRepository", "var_name": "usersConnectionRepository" }, { "declarator": "userDeta...
{ "body": "protected String toUserId(Connection<?> connection) {\n\t\tList<String> userIds = usersConnectionRepository.findUserIdsWithConnection(connection);\n\t\t// only if a single userId is connected to this providerUserId\n\t\treturn (userIds.size() == 1) ? userIds.iterator().next() : null;\n\t}", "class_method...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_43
{ "fields": [ { "declarator": "connectionFactoryLocator = new ConnectionFactoryRegistry()", "modifier": "private", "original_string": "private ConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();", "type": "ConnectionFactoryRegistry", "var_name": "con...
{ "body": "@Test(expected=IllegalArgumentException.class)\n\tpublic void addDuplicateProviderId() {\n\t\tconnectionFactoryLocator.addConnectionFactory(new TestTwitterConnectionFactory());\n\t}", "class_method_signature": "ConnectionFactoryRegistryTest.addDuplicateProviderId()", "constructor": false, "full_signa...
{ "fields": [ { "declarator": "connectionFactories = new HashMap<String, ConnectionFactory<?>>()", "modifier": "private final", "original_string": "private final Map<String, ConnectionFactory<?>> connectionFactories = new HashMap<String, ConnectionFactory<?>>();", "type": "Map<String, Conn...
{ "body": "public void addConnectionFactory(ConnectionFactory<?> connectionFactory) {\n\t\tif (connectionFactories.containsKey(connectionFactory.getProviderId())) {\n\t\t\tthrow new IllegalArgumentException(\"A ConnectionFactory for provider '\" + connectionFactory.getProviderId() + \"' has already been registered\")...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_14
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void signIn_nonExistentProvider() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLocato...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_48
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test\n\tpublic void buildAuthorizeUrl_additionalParameters() {\n\t\tOAuth2Parameters parameters = new OAuth2Parameters();\n\t\tparameters.setRedirectUri(\"https://www.someclient.com/connect/foo\");\n\t\tparameters.setScope(\"read,write\");\n\t\tparameters.add(\"display\", \"touch\");\n\t\tparameters.add(\...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public String buildAuthorizeUrl(OAuth2Parameters parameters) {\n\t\treturn buildAuthUrl(authorizeUrl, GrantType.AUTHORIZATION_CODE, parameters);\n\t}", "class_method_signature": "OAuth2Template.buildAuthorizeUrl(OAuth2Parameters parameters)", "constructor": false, "full_signature": "public String bui...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_25
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void removeConnections() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi2> connectionFactory = new StubOAuth2ConnectionFactory(\"clientId\", \"clientSecret\", THROW_EXCEPTION);\n\t\tconnectionFactor...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "@RequestMapping(value=\"/{providerId}\", method=RequestMethod.DELETE)\n\tpublic RedirectView removeConnections(@PathVariable String providerId, NativeWebRequest request) {\n\t\tConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnectionFactory(providerId);\n\t\tpreDisconnect(connectionF...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_33
{ "fields": [ { "declarator": "ACCESS_TOKEN_URL = \"https://www.someprovider.com/oauth/accessToken\"", "modifier": "private static final", "original_string": "private static final String ACCESS_TOKEN_URL = \"https://www.someprovider.com/oauth/accessToken\";", "type": "String", "var_n...
{ "body": "@Test(expected = IllegalArgumentException.class)\n\tpublic void setRequestFactory_null() {\n\t\toauth10a.setRequestFactory(null);\n\t}", "class_method_signature": "OAuth1TemplateTest.setRequestFactory_null()", "constructor": false, "full_signature": "@Test(expected = IllegalArgumentException.class) p...
{ "fields": [ { "declarator": "consumerKey", "modifier": "private final", "original_string": "private final String consumerKey;", "type": "String", "var_name": "consumerKey" }, { "declarator": "consumerSecret", "modifier": "private final", "original_string":...
{ "body": "public void setRequestFactory(ClientHttpRequestFactory requestFactory) {\n\t\tAssert.notNull(requestFactory, \"The requestFactory property cannot be null\");\n\t\trestTemplate.setRequestFactory(requestFactory);\n\t}", "class_method_signature": "OAuth1Template.setRequestFactory(ClientHttpRequestFactory re...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_13
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void constructor() {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLocator.addConnectionFactory(connectio...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void setApplicationUrl(String applicationUrl) {\n\t\tthis.applicationUrl = applicationUrl;\n\t}", "class_method_signature": "ProviderSignInController.setApplicationUrl(String applicationUrl)", "constructor": false, "full_signature": "public void setApplicationUrl(String applicationUrl)", "id...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_44
{ "fields": [ { "declarator": "connectionFactoryLocator = new ConnectionFactoryRegistry()", "modifier": "private", "original_string": "private ConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();", "type": "ConnectionFactoryRegistry", "var_name": "con...
{ "body": "@Test(expected=IllegalArgumentException.class)\n\tpublic void addDuplicateApiType() {\n\t\tconnectionFactoryLocator.addConnectionFactory(new TestTwitter2ConnectionFactory());\n\t}", "class_method_signature": "ConnectionFactoryRegistryTest.addDuplicateApiType()", "constructor": false, "full_signature"...
{ "fields": [ { "declarator": "connectionFactories = new HashMap<String, ConnectionFactory<?>>()", "modifier": "private final", "original_string": "private final Map<String, ConnectionFactory<?>> connectionFactories = new HashMap<String, ConnectionFactory<?>>();", "type": "Map<String, Conn...
{ "body": "public void addConnectionFactory(ConnectionFactory<?> connectionFactory) {\n\t\tif (connectionFactories.containsKey(connectionFactory.getProviderId())) {\n\t\t\tthrow new IllegalArgumentException(\"A ConnectionFactory for provider '\" + connectionFactory.getProviderId() + \"' has already been registered\")...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_52
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/support/ClientHttpRequestFactorySelectorTest.java", "identifier": "ClientHttpRequestFactorySelectorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void bufferRequests() throws Exception {\n\t\tClientHttpRequest mockRequest = mock(ClientHttpRequest.class);\n\t\tClientHttpResponse mockResponse = mock(ClientHttpResponse.class);\n\t\twhen(mockResponse.getBody()).thenReturn(new ByteArrayInputStream(\"Test Body\".getBytes()));\n\t\twhen(moc...
{ "fields": [ { "declarator": "HTTP_COMPONENTS_AVAILABLE = ClassUtils.isPresent(\"org.apache.http.client.HttpClient\", ClientHttpRequestFactory.class.getClassLoader())", "modifier": "private static final", "original_string": "private static final boolean HTTP_COMPONENTS_AVAILABLE = ClassUtils.is...
{ "body": "public static ClientHttpRequestFactory bufferRequests(ClientHttpRequestFactory requestFactory) {\n\t\treturn new BufferingClientHttpRequestFactory(requestFactory);\n\t}", "class_method_signature": "ClientHttpRequestFactorySelector.bufferRequests(ClientHttpRequestFactory requestFactory)", "constructor":...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_29
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void oauth2Callback() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi2> connectionFactory = new StubOAuth2ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLocator.addConnecti...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "@RequestMapping(value=\"/{providerId}\", method=RequestMethod.GET, params=\"code\")\n\tpublic RedirectView oauth2Callback(@PathVariable String providerId, NativeWebRequest request) {\n\t\ttry {\n\t\t\tOAuth2ConnectionFactory<?> connectionFactory = (OAuth2ConnectionFactory<?>) connectionFactoryLocator.getCo...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_6
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth2() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockRequest.setServerName(\"somesite.com\");\n\...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_7
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth2_withAdditionalParameters() throws Exception {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockR...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_28
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\t@Ignore(\"PENDING RESOLUTION OF https://jira.spring.io/browse/SPR-14790?focusedCommentId=133547&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133547\")\n\tpublic void connect_OAuth2Provider_withScope() throws Exception {\n\t\tConnectionFactoryRegistry connectionFact...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tif (applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signature": "ConnectController.afterPropertiesSet()", "constru...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_53
{ "fields": [], "file": "spring-social-security/src/test/java/org/springframework/social/security/SocialAuthenticationFilterTest.java", "identifier": "SocialAuthenticationFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void addConnection() {\n\t\tUsersConnectionRepository usersConnectionRepository = mock(UsersConnectionRepository.class);\n\t\tSocialAuthenticationFilter filter = new SocialAuthenticationFilter(null, null, usersConnectionRepository, null);\n\n\t\tSocialAut...
{ "fields": [ { "declarator": "authServiceLocator", "modifier": "private", "original_string": "private SocialAuthenticationServiceLocator authServiceLocator;", "type": "SocialAuthenticationServiceLocator", "var_name": "authServiceLocator" }, { "declarator": "signupUrl =...
{ "body": "protected Connection<?> addConnection(SocialAuthenticationService<?> authService, String userId, ConnectionData data) {\n\t\tHashSet<String> userIdSet = new HashSet<String>();\n\t\tuserIdSet.add(data.getProviderUserId());\n\t\tSet<String> connectedUserIds = usersConnectionRepository.findUserIdsConnectedTo(...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_45
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test\n\tpublic void buildAuthorizeUrl_codeResponseType() {\n\t\tOAuth2Parameters parameters = new OAuth2Parameters();\n\t\tparameters.setRedirectUri(\"https://www.someclient.com/connect/foo\");\n\t\tparameters.setScope(\"read,write\");\n\t\tString expected = AUTHORIZE_URL + \"?client_id=client_id&response...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public String buildAuthorizeUrl(OAuth2Parameters parameters) {\n\t\treturn buildAuthUrl(authorizeUrl, GrantType.AUTHORIZATION_CODE, parameters);\n\t}", "class_method_signature": "OAuth2Template.buildAuthorizeUrl(OAuth2Parameters parameters)", "constructor": false, "full_signature": "public String bui...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_12
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/SessionUserIdSourceTest.java", "identifier": "SessionUserIdSourceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void getUserId() throws Exception {\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\n\t\tMockHttpSession session = new MockHttpSession() {\n\t\t\t@Override\n\t\t\tpublic String getId() {\n\t\t\t\treturn \"535510n1D\";\n\t\t\t}\n\t\t};\n\t\trequest.setSession(session);\n\...
{ "fields": [], "file": "spring-social-web/src/main/java/org/springframework/social/connect/web/SessionUserIdSource.java", "identifier": "SessionUserIdSource", "interfaces": "implements UserIdSource", "methods": [ { "class_method_signature": "SessionUserIdSource.getUserId()", "constructor": fa...
{ "body": "@Override\n\tpublic String getUserId() {\n\t\treturn RequestContextHolder.currentRequestAttributes().getSessionId();\n\t}", "class_method_signature": "SessionUserIdSource.getUserId()", "constructor": false, "full_signature": "@Override public String getUserId()", "identifier": "getUserId", "invoc...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_32
{ "fields": [ { "declarator": "ACCESS_TOKEN_URL = \"https://www.someprovider.com/oauth/accessToken\"", "modifier": "private static final", "original_string": "private static final String ACCESS_TOKEN_URL = \"https://www.someprovider.com/oauth/accessToken\";", "type": "String", "var_n...
{ "body": "@Test\n\tpublic void buildAuthorizeUrl_customAuthorizeParameters() {\n\t\tOAuth1Parameters parameters = new OAuth1Parameters(null);\n\t\tparameters.setCallbackUrl(\"https://www.someclient.com/oauth/callback\");\n\t\tassertEquals(AUTHORIZE_URL + \"?oauth_token=request_token&oauth_callback=https%3A%2F%2Fwww....
{ "fields": [ { "declarator": "consumerKey", "modifier": "private final", "original_string": "private final String consumerKey;", "type": "String", "var_name": "consumerKey" }, { "declarator": "consumerSecret", "modifier": "private final", "original_string":...
{ "body": "public String buildAuthorizeUrl(String requestToken, OAuth1Parameters parameters) {\n\t\treturn buildAuthUrl(authorizeUrl, requestToken, parameters);\n\t}", "class_method_signature": "OAuth1Template.buildAuthorizeUrl(String requestToken, OAuth1Parameters parameters)", "constructor": false, "full_sign...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_24
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void connectionStatus() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\", THROW_EXCEPTION);\n\t\tconnectionFactor...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "@RequestMapping(method=RequestMethod.GET)\n\tpublic String connectionStatus(NativeWebRequest request, Model model) {\n\t\tsetNoCache(request);\n\t\tprocessFlash(request, model);\n\t\tMap<String, List<Connection<?>>> connections = connectionRepository.findAllConnections();\n\t\tmodel.addAttribute(\"provider...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_49
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test\n\tpublic void exchangeCredentialsForAccess() {\n\t\tAccessGrant accessGrant = passwordGrant(\"accessToken.json\");\n\t\tassertEquals(\"8d0a88a5c4f1ae4937ad864cafa8e857\", accessGrant.getAccessToken());\n\t\tassertEquals(\"6b0411401bf8751e34f57feb29fb8e32\", accessGrant.getRefreshToken());\n\t\tlong ...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public AccessGrant exchangeCredentialsForAccess(String username, String password, MultiValueMap<String, String> additionalParameters) {\n\t\tMultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>();\n\t\tif (useParametersForClientAuthentication) {\n\t\t\tparams.set(\"client_id\", cl...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_8
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth2_withAdditionalParametersFromRequest() throws Exception {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_31
{ "fields": [ { "declarator": "ACCESS_TOKEN_URL = \"https://www.someprovider.com/oauth/accessToken\"", "modifier": "private static final", "original_string": "private static final String ACCESS_TOKEN_URL = \"https://www.someprovider.com/oauth/accessToken\";", "type": "String", "var_n...
{ "body": "@Test\n\tpublic void buildAuthorizeUrl() {\n\t\tOAuth1Parameters parameters = new OAuth1Parameters(null);\n\t\tparameters.setCallbackUrl(\"https://www.someclient.com/oauth/callback\");\n\t\tassertEquals(AUTHORIZE_URL + \"?oauth_token=request_token\",\n\t\t\t\toauth10a.buildAuthorizeUrl(\"request_token\", O...
{ "fields": [ { "declarator": "consumerKey", "modifier": "private final", "original_string": "private final String consumerKey;", "type": "String", "var_name": "consumerKey" }, { "declarator": "consumerSecret", "modifier": "private final", "original_string":...
{ "body": "public String buildAuthorizeUrl(String requestToken, OAuth1Parameters parameters) {\n\t\treturn buildAuthUrl(authorizeUrl, requestToken, parameters);\n\t}", "class_method_signature": "OAuth1Template.buildAuthorizeUrl(String requestToken, OAuth1Parameters parameters)", "constructor": false, "full_sign...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_27
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void oauth1Callback() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLocator.addConnecti...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "@RequestMapping(value=\"/{providerId}\", method=RequestMethod.GET, params=\"oauth_token\")\n\tpublic RedirectView oauth1Callback(@PathVariable String providerId, NativeWebRequest request) {\n\t\ttry {\n\t\t\tOAuth1ConnectionFactory<?> connectionFactory = (OAuth1ConnectionFactory<?>) connectionFactoryLocato...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_4
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth10a_withAdditionalParameters() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockRequest.setServe...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_50
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test\n\tpublic void authenticateClient() {\n\t\tAccessGrant accessGrant = clientCredentials(\"accessToken_noUser.json\");\n\t\tassertEquals(\"8d0a88a5c4f1ae4937ad864cafa8e857\", accessGrant.getAccessToken());\n\t\tlong approximateExpirationTime = System.currentTimeMillis() + 40735000;\n\t\tlong actualExpi...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public AccessGrant authenticateClient() {\n\t\treturn authenticateClient(null);\n\t}", "class_method_signature": "OAuth2Template.authenticateClient()", "constructor": false, "full_signature": "public AccessGrant authenticateClient()", "identifier": "authenticateClient", "invocations": [ "auth...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_46
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test\n\tpublic void buildAuthorizeUrl_tokenResponseType() {\n\t\tOAuth2Parameters parameters = new OAuth2Parameters();\n\t\tparameters.setRedirectUri(\"https://www.someclient.com/connect/foo\");\n\t\tparameters.setScope(\"read,write\");\n\t\tString expected = AUTHORIZE_URL + \"?client_id=client_id&respons...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public String buildAuthorizeUrl(OAuth2Parameters parameters) {\n\t\treturn buildAuthUrl(authorizeUrl, GrantType.AUTHORIZATION_CODE, parameters);\n\t}", "class_method_signature": "OAuth2Template.buildAuthorizeUrl(OAuth2Parameters parameters)", "constructor": false, "full_signature": "public String bui...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_11
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ReconnectFilterTest.java", "identifier": "ReconnectFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void shouldPerformRefreshPostRequest() throws Exception {\n\t\tperformFilterForPostRequest(\"/connect/google\", \"google\");\n\t\tperformFilterForPostRequest(\"/connect/google/\", \"google\");\n\t}", "class_method_signature": "ReconnectFilterTest.shouldPerformRefreshPostRequest()", "con...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ReconnectFilter.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ReconnectFilter.class);", "type": "Log", "var_name": "logger" }, { "declarator"...
{ "body": "protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) {\n\t\tString servletPath = request.getServletPath();\n\t\treturn request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null;\n\t}...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_10
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void completeConnection_OAuth2() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.addParameter(\"code\", \"authorization-grant\");\n\t\tmockRequest.addParameter(\"state\", \"STATE\");\n\t\...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public Connection<?> completeConnection(OAuth1ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\tString verifier = request.getParameter(\"oauth_verifier\"); \n\t\tAuthorizedRequestToken requestToken = new AuthorizedRequestToken(extractCachedRequestToken(request), verifier);\n\t\tOAuth...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_47
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test\n\tpublic void buildAuthorizeUrl_noScopeInParameters() {\n\t\tOAuth2Parameters parameters = new OAuth2Parameters();\n\t\tparameters.setRedirectUri(\"https://www.someclient.com/connect/foo\");\n\t\tString expected = AUTHORIZE_URL + \"?client_id=client_id&response_type=code&redirect_uri=https%3A%2F%2Fw...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public String buildAuthorizeUrl(OAuth2Parameters parameters) {\n\t\treturn buildAuthUrl(authorizeUrl, GrantType.AUTHORIZATION_CODE, parameters);\n\t}", "class_method_signature": "OAuth2Template.buildAuthorizeUrl(OAuth2Parameters parameters)", "constructor": false, "full_signature": "public String bui...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_51
{ "fields": [ { "declarator": "AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\"", "modifier": "private static final", "original_string": "private static final String AUTHORIZE_URL = \"https://www.someprovider.com/oauth/authorize\";", "type": "String", "var_name": "AUT...
{ "body": "@Test(expected = IllegalArgumentException.class)\n\tpublic void setRequestFactory_null() {\n\t\toAuth2Template.setRequestFactory(null);\n\t}", "class_method_signature": "OAuth2TemplateTest.setRequestFactory_null()", "constructor": false, "full_signature": "@Test(expected = IllegalArgumentException.cl...
{ "fields": [ { "declarator": "clientId", "modifier": "private final", "original_string": "private final String clientId;", "type": "String", "var_name": "clientId" }, { "declarator": "clientSecret", "modifier": "private final", "original_string": "private f...
{ "body": "public void setRequestFactory(ClientHttpRequestFactory requestFactory) {\n\t\tAssert.notNull(requestFactory, \"The requestFactory property cannot be null\");\n\t\tgetRestTemplate().setRequestFactory(requestFactory);\n\t}", "class_method_signature": "OAuth2Template.setRequestFactory(ClientHttpRequestFacto...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_5
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth10a_withAdditionalParametersFromRequest() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockReque...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_26
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void removeConnection() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi2> connectionFactory = new StubOAuth2ConnectionFactory(\"clientId\", \"clientSecret\", THROW_EXCEPTION);\n\t\tconnectionFactory...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "@RequestMapping(value=\"/{providerId}/{providerUserId}\", method=RequestMethod.DELETE)\n\tpublic RedirectView removeConnection(@PathVariable String providerId, @PathVariable String providerUserId, NativeWebRequest request) {\n\t\tConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnecti...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_9
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void completeConnection_OAuth1() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.addParameter(\"oauth_verifier\", \"verifier\");\n\t\tmockRequest.getSession().setAttribute(\"oauthToken\",...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public Connection<?> completeConnection(OAuth1ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\tString verifier = request.getParameter(\"oauth_verifier\"); \n\t\tAuthorizedRequestToken requestToken = new AuthorizedRequestToken(extractCachedRequestToken(request), verifier);\n\t\tOAuth...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_30
{ "fields": [ { "declarator": "OAUTH2_AUTHORIZE_URL = \"https://someprovider.com/oauth/authorize?client_id=clientId&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fconnect%2Foauth2Provider\"", "modifier": "private static final", "original_string": "private static final String OAUTH2_AU...
{ "body": "@Test\n\tpublic void oauth2ErrorCallback() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi2> connectionFactory = new StubOAuth2ConnectionFactory(\"clientId\", \"clientSecret\", THROW_EXCEPTION);\n\t\tconnectionFact...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectController.class);", "type": "Log", "var_name": "logger" }, { "declara...
{ "body": "@RequestMapping(value=\"/{providerId}\", method=RequestMethod.GET, params=\"error\")\n\tpublic RedirectView oauth2ErrorCallback(@PathVariable String providerId, \n\t\t\t@RequestParam(\"error\") String error, \n\t\t\t@RequestParam(value=\"error_description\", required=false) String errorDescription,\n\t\t\t...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_2
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth10_withAdditionalParameters() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockRequest.setServer...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_56
{ "fields": [], "file": "spring-social-security/src/test/java/org/springframework/social/security/SocialAuthenticationProviderTest.java", "identifier": "SocialAuthenticationProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void authenticate() {\n\t\tUsersConnectionRepository repo = mock(UsersConnectionRepository.class);\n\t\tSocialUserDetailsService userDetailsService = mock(SocialUserDetailsService.class);\n\t\tSocialAuthenticationProvider provider = new SocialAuthenticationProvider(repo, userDetailsService)...
{ "fields": [ { "declarator": "usersConnectionRepository", "modifier": "private", "original_string": "private UsersConnectionRepository usersConnectionRepository;", "type": "UsersConnectionRepository", "var_name": "usersConnectionRepository" }, { "declarator": "userDeta...
{ "body": "public Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\t\tAssert.isInstanceOf(SocialAuthenticationToken.class, authentication, \"unsupported authentication type\");\n\t\tAssert.isTrue(!authentication.isAuthenticated(), \"already authenticated\");\n\t\tSocialAut...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_40
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/connect/ConnectionKeyTest.java", "identifier": "ConnectionKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void toString_providerIdOnly() {\n\t\tConnectionKey key = new ConnectionKey(\"provider1\", null);\n\t\tassertEquals(\"provider1:null\", key.toString());\n\t}", "class_method_signature": "ConnectionKeyTest.toString_providerIdOnly()", "constructor": false, "full_signature": "@Test publi...
{ "fields": [ { "declarator": "providerId", "modifier": "private final", "original_string": "private final String providerId;", "type": "String", "var_name": "providerId" }, { "declarator": "providerUserId", "modifier": "private final", "original_string": "p...
{ "body": "public String toString() {\n\t\treturn providerId + \":\" + providerUserId;\n\t}", "class_method_signature": "ConnectionKey.toString()", "constructor": false, "full_signature": "public String toString()", "identifier": "toString", "invocations": [], "modifiers": "public", "parameters": "()", ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_17
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void oauth1Callback_noMatchingUser() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLoc...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_37
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/connect/ConnectionKeyTest.java", "identifier": "ConnectionKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void hashCode_providerIdOnly() {\n\t\tConnectionKey key = new ConnectionKey(\"provider1\", null);\n\t\tassertEquals(\"provider1\".hashCode(), key.hashCode());\n\t}", "class_method_signature": "ConnectionKeyTest.hashCode_providerIdOnly()", "constructor": false, "full_signature": "@Test...
{ "fields": [ { "declarator": "providerId", "modifier": "private final", "original_string": "private final String providerId;", "type": "String", "var_name": "providerId" }, { "declarator": "providerUserId", "modifier": "private final", "original_string": "p...
{ "body": "public int hashCode() {\n\t\tint hashCode = providerId.hashCode();\n\t\treturn providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode;\n\t}", "class_method_signature": "ConnectionKey.hashCode()", "constructor": false, "full_signature": "public int hashCode()", "identifier": "hashC...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_21
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void oauth2ErrorCallback() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi2> connectionFactory2 = new StubOAuth2ConnectionFactory(\"clientId\", \"clientSecret\");\n\t\tconnectionFactoryLocator.addCo...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "@RequestMapping(value=\"/{providerId}\", method=RequestMethod.GET, params=\"error\")\n\tpublic RedirectView oauth2ErrorCallback(@PathVariable String providerId,\n\t\t\t@RequestParam(\"error\") String error,\n\t\t\t@RequestParam(value=\"error_description\", required=false) String errorDescription,\n\t\t\t@R...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_20
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"PENDING RESOLUTION OF https://jira.spring.io/browse/SPR-14790?focusedCommentId=133547&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133547\")\n\tpublic void oauth2Callback_noMatchingUser() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactory...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_36
{ "fields": [], "file": "spring-social-core/src/test/java/org/springframework/social/connect/ConnectionKeyTest.java", "identifier": "ConnectionKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void equals_notEqual() {\n\t\tConnectionKey key1 = new ConnectionKey(\"provider1\", \"providerUser1\");\n\t\tConnectionKey key2 = new ConnectionKey(\"provider2\", \"providerUser1\");\n\t\tConnectionKey key3 = new ConnectionKey(\"provider1\", \"providerUser2\");\n\t\tConnectionKey key4 = new...
{ "fields": [ { "declarator": "providerId", "modifier": "private final", "original_string": "private final String providerId;", "type": "String", "var_name": "providerId" }, { "declarator": "providerUserId", "modifier": "private final", "original_string": "p...
{ "body": "public boolean equals(Object o) {\n\t\tif (!(o instanceof ConnectionKey)) {\n\t\t\treturn false;\n\t\t}\n\t\tConnectionKey other = (ConnectionKey) o;\n\t\tboolean sameProvider = providerId.equals(other.providerId);\n\t\treturn providerUserId != null ? sameProvider && providerUserId.equals(other.providerUse...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_16
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java", "identifier": "ProviderSignInControllerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void signIn_OAuth1Provider_exceptionWhileFetchingRequestToken() throws Exception {\n\t\tConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();\n\t\tConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory(\"clientId\", \"clientSecret\",...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ProviderSignInController.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ProviderSignInController.class);", "type": "Log", "var_name": "logger" }, { ...
{ "body": "public void afterPropertiesSet() throws Exception {\n\t\tthis.connectSupport = new ConnectSupport(sessionStrategy);\n\t\tthis.connectSupport.setUseAuthenticateUrl(true);\n\t\tif (this.applicationUrl != null) {\n\t\t\tthis.connectSupport.setApplicationUrl(applicationUrl);\n\t\t}\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_41
{ "fields": [ { "declarator": "connectionFactoryLocator = new ConnectionFactoryRegistry()", "modifier": "private", "original_string": "private ConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry();", "type": "ConnectionFactoryRegistry", "var_name": "con...
{ "body": "@Test\n\tpublic void getConnectionFactoryByProviderId() {\n\t\tConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnectionFactory(\"twitter\");\n\t\tassertSame(twitterConnectionFactory, connectionFactory);\n\t\tassertEquals(\"twitter\", connectionFactory.getProviderId());\n\t}", "clas...
{ "fields": [ { "declarator": "connectionFactories = new HashMap<String, ConnectionFactory<?>>()", "modifier": "private final", "original_string": "private final Map<String, ConnectionFactory<?>> connectionFactories = new HashMap<String, ConnectionFactory<?>>();", "type": "Map<String, Conn...
{ "body": "public ConnectionFactory<?> getConnectionFactory(String providerId) {\n\t\tConnectionFactory<?> connectionFactory = connectionFactories.get(providerId);\n\t\tif (connectionFactory == null) {\n\t\t\tthrow new IllegalArgumentException(\"No connection factory for service provider '\" + providerId + \"' is reg...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
1421658_3
{ "fields": [], "file": "spring-social-web/src/test/java/org/springframework/social/connect/web/ConnectSupportTest.java", "identifier": "ConnectSupportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void buildOAuthUrl_OAuth10a() {\n\t\tConnectSupport support = new ConnectSupport();\n\t\tMockHttpServletRequest mockRequest = new PortAwareMockHttpServletRequest();\n\t\tmockRequest.setScheme(\"https\");\n\t\tmockRequest.setServerPort(443);\n\t\tmockRequest.setServerName(\"somesite.com\");\...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(ConnectSupport.class)", "modifier": "private final static", "original_string": "private final static Log logger = LogFactory.getLog(ConnectSupport.class);", "type": "Log", "var_name": "logger" }, { "declarator": ...
{ "body": "public String buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request) {\n\t\treturn buildOAuthUrl(connectionFactory, request, null);\n\t}", "class_method_signature": "ConnectSupport.buildOAuthUrl(ConnectionFactory<?> connectionFactory, NativeWebRequest request)", "constructor": ...
{ "created": null, "fork": null, "fork_count": 356, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1421658, "size": 9570, "stargazer_count": 590, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-social" }
103698172_3
{ "fields": [ { "declarator": "tracer", "modifier": "private", "original_string": "private Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "serviceName = \"dummy-service\"", "modifier": "private final static", "original_string": "p...
{ "body": "@Test(expected = ClientException.class)\n public void testFailedDispatch() throws Exception {\n final Span span = tracer.buildSpan(\"sad-path\").start();\n span.finish();\n final ArgumentCaptor<HttpPost> httpPostCapture = ArgumentCaptor.forClass(HttpPost.class);\n final Close...
{ "fields": [ { "declarator": "format", "modifier": "private final", "original_string": "private final Format<com.expedia.open.tracing.Span> format;", "type": "Format<com.expedia.open.tracing.Span>", "var_name": "format" } ], "file": "core/src/main/java/com/expedia/www/haysta...
{ "body": "@Override\n public boolean send(Span span) throws ClientException {\n final byte[] spanBytes = format.format(span).toByteArray();\n return super.send(spanBytes);\n }", "class_method_signature": "HttpCollectorClient.send(Span span)", "constructor": false, "full_signature": "@Overrid...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_2
{ "fields": [ { "declarator": "tracer", "modifier": "private", "original_string": "private Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "serviceName = \"dummy-service\"", "modifier": "private final static", "original_string": "p...
{ "body": "@Test\n public void testDispatch() throws Exception {\n final Span span = tracer.buildSpan(\"happy-path\").asChildOf(spanContext).start();\n span.finish();\n final ArgumentCaptor<HttpPost> httpPostCapture = ArgumentCaptor.forClass(HttpPost.class);\n\n final CloseableHttpClien...
{ "fields": [ { "declarator": "format", "modifier": "private final", "original_string": "private final Format<com.expedia.open.tracing.Span> format;", "type": "Format<com.expedia.open.tracing.Span>", "var_name": "format" } ], "file": "core/src/main/java/com/expedia/www/haysta...
{ "body": "@Override\n public boolean send(Span span) throws ClientException {\n final byte[] spanBytes = format.format(span).toByteArray();\n return super.send(spanBytes);\n }", "class_method_signature": "HttpCollectorClient.send(Span span)", "constructor": false, "full_signature": "@Overrid...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_9
{ "fields": [ { "declarator": "tracer", "modifier": "private", "original_string": "private Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "span", "modifier": "private", "original_string": "private Span span;", "type": "Span"...
{ "body": "@Test\n public void testTagForTagType() {\n String key = \"typed-key-name\";\n String value = \"typed-tag-value-value\";\n StringTag stringTag = new StringTag(key);\n stringTag.set(span, value);\n Assert.assertEquals(value, span.getTags().get(key));\n }", "class_method_signature": "SpanT...
{ "fields": [ { "declarator": "tracer", "modifier": "private final", "original_string": "private final Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "clock", "modifier": "private final", "original_string": "private final Clock cl...
{ "body": "public Map<String, Object> getTags() {\n synchronized (this) {\n return Collections.unmodifiableMap(tags);\n }\n }", "class_method_signature": "Span.getTags()", "constructor": false, "full_signature": "public Map<String, Object> getTags()", "identifier": "getTags", "invocations": [ ...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_5
{ "fields": [ { "declarator": "metrics", "modifier": "private", "original_string": "private MetricsRegistry metrics;", "type": "MetricsRegistry", "var_name": "metrics" }, { "declarator": "dispatcher", "modifier": "private", "original_string": "private Dispat...
{ "body": "@Test\n public void testFlushTimer() {\n Span span = tracer.buildSpan(\"happy-path\").start();\n dispatcher.dispatch(span);\n\n Awaitility.await()\n .atMost(flushInterval * 2, TimeUnit.MILLISECONDS)\n .until(() -> client.getFlushedSpans().size() > 0);\n\n ...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(RemoteDispatcher.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(RemoteDispatcher.class);", "type": "Logger", "var_name": "LOGGER" }, ...
{ "body": "@Override\n public void dispatch(Span span) {\n try (Sample timer = dispatchTimer.start()) {\n if (running.get()) {\n final boolean accepted = acceptQueue.offer(span);\n if (!accepted) {\n dispatchRejectedCounter.increment();\n ...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_10
{ "fields": [ { "declarator": "tracer", "modifier": "private", "original_string": "private Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "span", "modifier": "private", "original_string": "private Span span;", "type": "Span"...
{ "body": "@Test\n public void testFinishAfterFinish() {\n InMemoryDispatcher dispatcher = new InMemoryDispatcher.Builder(metrics).build();\n tracer = new Tracer.Builder(metrics, \"remote-dispatcher\", dispatcher).build();\n\n Span span = tracer.buildSpan(\"operation\").start();\n\n span.finish();\n\n ...
{ "fields": [ { "declarator": "tracer", "modifier": "private final", "original_string": "private final Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "clock", "modifier": "private final", "original_string": "private final Clock cl...
{ "body": "@Override\n public void finish() {\n finishTrace(clock.microTime());\n }", "class_method_signature": "Span.finish()", "constructor": false, "full_signature": "@Override public void finish()", "identifier": "finish", "invocations": [ "finishTrace", "microTime" ], "modifiers": "@Ov...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_4
{ "fields": [ { "declarator": "tracer", "modifier": "private", "original_string": "private Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "serviceName = \"dummy-service\"", "modifier": "private final static", "original_string": "p...
{ "body": "@Test(expected = ClientException.class)\n public void testAnotherFailedDispatch() throws Exception {\n final Span span = tracer.buildSpan(\"sad-path\").start();\n span.finish();\n final ArgumentCaptor<HttpPost> httpPostCapture = ArgumentCaptor.forClass(HttpPost.class);\n fina...
{ "fields": [ { "declarator": "format", "modifier": "private final", "original_string": "private final Format<com.expedia.open.tracing.Span> format;", "type": "Format<com.expedia.open.tracing.Span>", "var_name": "format" } ], "file": "core/src/main/java/com/expedia/www/haysta...
{ "body": "@Override\n public boolean send(Span span) throws ClientException {\n final byte[] spanBytes = format.format(span).toByteArray();\n return super.send(spanBytes);\n }", "class_method_signature": "HttpCollectorClient.send(Span span)", "constructor": false, "full_signature": "@Overrid...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_8
{ "fields": [ { "declarator": "tracer", "modifier": "private", "original_string": "private Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "span", "modifier": "private", "original_string": "private Span span;", "type": "Span"...
{ "body": "@Test\n public void testServiceName() {\n String expected = \"service-name\";\n Span span = new Tracer.Builder(metrics, expected, dispatcher).build().buildSpan(expected).start();\n Assert.assertEquals(expected, span.getServiceName());\n }", "class_method_signature": "SpanTest.testServiceName()...
{ "fields": [ { "declarator": "tracer", "modifier": "private final", "original_string": "private final Tracer tracer;", "type": "Tracer", "var_name": "tracer" }, { "declarator": "clock", "modifier": "private final", "original_string": "private final Clock cl...
{ "body": "public String getServiceName() {\n synchronized (this) {\n return getTracer().getServiceName();\n }\n }", "class_method_signature": "Span.getServiceName()", "constructor": false, "full_signature": "public String getServiceName()", "identifier": "getServiceName", "invocations": [ "...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_7
{ "fields": [], "file": "core/src/test/java/com/expedia/www/haystack/client/propagation/TextMapPropagatorTest.java", "identifier": "TextMapPropagatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void builderUsesTheProvidedCodexForKeyAndValue() {\n final KeyConvention keyConvention = new DefaultKeyConvention();\n final TextMapCodex codex = new OneAppendingCodex();\n final TextMapPropagator propagator = new TextMapPropagator.Builder()\n .withKeyC...
{ "fields": [ { "declarator": "convention", "modifier": "private final", "original_string": "private final KeyConvention convention;", "type": "KeyConvention", "var_name": "convention" }, { "declarator": "keyCodex", "modifier": "private final", "original_str...
{ "body": "@Override\n public void inject(SpanContext context, TextMap carrier) {\n put(carrier, convention.traceIdKey(), context.getTraceId().toString());\n put(carrier, convention.spanIdKey(), context.getSpanId().toString());\n if (context.getParentId() != null) {\n put(carrier, c...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_6
{ "fields": [], "file": "core/src/test/java/com/expedia/www/haystack/client/propagation/TextMapPropagatorTest.java", "identifier": "TextMapPropagatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void propagatorInjectsSpanContextIdentitiesAsExpected() {\n final KeyConvention keyConvention = new DefaultKeyConvention();\n final TextMapPropagator propagator = new TextMapPropagator.Builder().withKeyConvention(keyConvention).build();\n final MapBackedTextMap carrie...
{ "fields": [ { "declarator": "convention", "modifier": "private final", "original_string": "private final KeyConvention convention;", "type": "KeyConvention", "var_name": "convention" }, { "declarator": "keyCodex", "modifier": "private final", "original_str...
{ "body": "@Override\n public void inject(SpanContext context, TextMap carrier) {\n put(carrier, convention.traceIdKey(), context.getTraceId().toString());\n put(carrier, convention.spanIdKey(), context.getSpanId().toString());\n if (context.getParentId() != null) {\n put(carrier, c...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_1
{ "fields": [ { "declarator": "grpcServerRule = new GrpcServerRule().directExecutor()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final GrpcServerRule grpcServerRule = new GrpcServerRule().directExecutor();", "type": "GrpcServerRule", "var_name": "g...
{ "body": "@Test\n public void testDispatch() throws Exception {\n final Span span = tracer.buildSpan(\"happy-path\").start();\n span.finish();\n\n final ArgumentCaptor<com.expedia.open.tracing.Span> spanCapture = ArgumentCaptor.forClass(com.expedia.open.tracing.Span.class);\n\n client....
{ "fields": [ { "declarator": "format", "modifier": "private final", "original_string": "private final Format<com.expedia.open.tracing.Span> format;", "type": "Format<com.expedia.open.tracing.Span>", "var_name": "format" } ], "file": "core/src/main/java/com/expedia/www/haysta...
{ "body": "@Override\n public boolean send(Span span) throws ClientException {\n try (Sample timer = sendTimer.start()) {\n stub.dispatch(format.format(span), observer);\n } catch (Exception e) {\n sendExceptionCounter.increment();\n throw new ClientException(e.getMes...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
103698172_0
{ "fields": [ { "declarator": "registry = new MicrometerMetricsRegistry(new SimpleMeterRegistry())", "modifier": "private final", "original_string": "private final MetricsRegistry registry = new MicrometerMetricsRegistry(new SimpleMeterRegistry());", "type": "MetricsRegistry", "var_n...
{ "body": "@Test\n public void gaugeOnNullValue() {\n Gauge gauge = registry.gauge(\"gauge\", emptyList(), null, obj -> 1.0);\n assertEquals(gauge.value(), Double.NaN, 0);\n }", "class_method_signature": "MicrometerMetricsRegistryTest.gaugeOnNullValue()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "registry", "modifier": "private final", "original_string": "private final MeterRegistry registry;", "type": "MeterRegistry", "var_name": "registry" } ], "file": "metrics/micrometer/src/main/java/com/expedia/www/haystack/client/metrics/micrometer...
{ "body": "@Override\n public <T> Gauge gauge(String name, Collection<Tag> tags, T obj, ToDoubleFunction<T> f) {\n return new MicrometerGauge<T>(io.micrometer.core.instrument.Gauge.builder(name, obj, f).tags(toTags(tags)).register(registry));\n }", "class_method_signature": "MicrometerMetricsRegistry.g...
{ "created": null, "fork": null, "fork_count": 10, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 103698172, "size": 1050, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/ExpediaDotCom/haystack-client-java" }
31924536_6
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/hash/IntIntMapTest.java", "identifier": "IntIntMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSum() {\n IntIntMap map = new IntIntMap(1000);\n \n final int numEntries = 2000;\n for (int i = 1; i <= numEntries; i++) {\n int value = i * 100;\n map.add(i, value);\n }\n\n // Sum of 1...2000 is (2000*2000 + 2000)...
{ "fields": [ { "declarator": "DEFAULT_CAPACITY = 1000", "modifier": "private static final", "original_string": "private static final int DEFAULT_CAPACITY = 1000;", "type": "int", "var_name": "DEFAULT_CAPACITY" }, { "declarator": "_map", "modifier": "private", ...
{ "body": "public int sum() {\n int result = 0;\n for (int v : _map.values()) {\n result += v;\n }\n \n return result;\n }", "class_method_signature": "IntIntMap.sum()", "constructor": false, "full_signature": "public int sum()", "identifier": "sum", "invocat...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_7
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/hash/IntIntMapTest.java", "identifier": "IntIntMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testKeySet() {\n IntIntMap map = new IntIntMap();\n \n final int numEntries = 100;\n for (int i = 0; i < numEntries; i++) {\n int value = (i + 1) * 100;\n map.add(i, value);\n }\n \n int[] keys = map.keySet();\n ...
{ "fields": [ { "declarator": "DEFAULT_CAPACITY = 1000", "modifier": "private static final", "original_string": "private static final int DEFAULT_CAPACITY = 1000;", "type": "int", "var_name": "DEFAULT_CAPACITY" }, { "declarator": "_map", "modifier": "private", ...
{ "body": "public int[] keySet() {\n int[] result = new int[_map.size()];\n \n int index = 0;\n for (int k : _map.keySet()) {\n result[index++] = k;\n }\n \n return result;\n }", "class_method_signature": "IntIntMap.keySet()", "constructor": false, ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_0
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/text/TextTokenizerTest.java", "identifier": "TextTokenizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMyNGramIteratorTrigrams() throws Exception {\n TextTokenizer tokenizer = new TextTokenizer(\"abc\", 3);\n \n Set<String> ngrams = new HashSet<String>();\n \n while (tokenizer.hasNext()) {\n String ngram = tokenizer.next();\n ...
{ "fields": [], "file": "core/src/main/java/org/krugler/yalder/text/TextTokenizer.java", "identifier": "TextTokenizer", "interfaces": "", "methods": [ { "class_method_signature": "TextTokenizer.TextTokenizer(String text, int maxNGramLength)", "constructor": true, "full_signature": "publi...
{ "body": "public String next() {\n if (!hasNext()) {\n throw new IllegalStateException(\"No next ngram to return\");\n }\n\n CharSequence result = CharBuffer.wrap(_normalized, _normalizedPos, _curNGramLength);\n\n nextNGram();\n\n return result.toString();\n }", "cl...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_1
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/text/TextTokenizerTest.java", "identifier": "TextTokenizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNormalizationAndSpaceCollapse() throws Exception {\n TextTokenizer tokenizer = new TextTokenizer(\"A ,!\", 3);\n Set<String> ngrams = new HashSet<String>();\n while (tokenizer.hasNext()) {\n String ngram = tokenizer.next();\n ngrams.add(...
{ "fields": [], "file": "core/src/main/java/org/krugler/yalder/text/TextTokenizer.java", "identifier": "TextTokenizer", "interfaces": "", "methods": [ { "class_method_signature": "TextTokenizer.TextTokenizer(String text, int maxNGramLength)", "constructor": true, "full_signature": "publi...
{ "body": "public String next() {\n if (!hasNext()) {\n throw new IllegalStateException(\"No next ngram to return\");\n }\n\n CharSequence result = CharBuffer.wrap(_normalized, _normalizedPos, _curNGramLength);\n\n nextNGram();\n\n return result.toString();\n }", "cl...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_2
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/text/TextTokenizerTest.java", "identifier": "TextTokenizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testReturnNormalization() throws Exception {\n TextTokenizer tokenizer = new TextTokenizer(\"\\r\\t\\n\", 1);\n \n assertTrue(tokenizer.hasNext());\n assertEquals(\" \", tokenizer.next());\n assertFalse(tokenizer.hasNext());\n \n // Ma...
{ "fields": [], "file": "core/src/main/java/org/krugler/yalder/text/TextTokenizer.java", "identifier": "TextTokenizer", "interfaces": "", "methods": [ { "class_method_signature": "TextTokenizer.TextTokenizer(String text, int maxNGramLength)", "constructor": true, "full_signature": "publi...
{ "body": "public String next() {\n if (!hasNext()) {\n throw new IllegalStateException(\"No next ngram to return\");\n }\n\n CharSequence result = CharBuffer.wrap(_normalized, _normalizedPos, _curNGramLength);\n\n nextNGram();\n\n return result.toString();\n }", "cl...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_3
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/text/TextTokenizerTest.java", "identifier": "TextTokenizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNormalizedBufferReset() throws Exception {\n int numChars = 2000;\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < numChars; i++) {\n sb.append((char)((int)'a' + (i % 10)));\n }\n \n // We should get 3(N - 1) ngr...
{ "fields": [], "file": "core/src/main/java/org/krugler/yalder/text/TextTokenizer.java", "identifier": "TextTokenizer", "interfaces": "", "methods": [ { "class_method_signature": "TextTokenizer.TextTokenizer(String text, int maxNGramLength)", "constructor": true, "full_signature": "publi...
{ "body": "public String next() {\n if (!hasNext()) {\n throw new IllegalStateException(\"No next ngram to return\");\n }\n\n CharSequence result = CharBuffer.wrap(_normalized, _normalizedPos, _curNGramLength);\n\n nextNGram();\n\n return result.toString();\n }", "cl...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_4
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/LanguageLocaleTest.java", "identifier": "LanguageLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDisplayNameInToString() {\n LanguageLocale l = LanguageLocale.fromString(\"pag\");\n System.out.println(l);\n \n System.out.println(LanguageLocale.fromString(\"ind\"));\n System.out.println(LanguageLocale.fromString(\"dzo\"));\n }", "class_...
{ "fields": [ { "declarator": "LOCALES = new HashMap<String, LanguageLocale>()", "modifier": "private static", "original_string": "private static Map<String, LanguageLocale> LOCALES = new HashMap<String, LanguageLocale>();", "type": "Map<String, LanguageLocale>", "var_name": "LOCALES...
{ "body": "public static LanguageLocale fromString(String languageName) {\n if (!LOCALES.containsKey(languageName)) {\n\n synchronized (LOCALES) {\n // Make sure nobody added it after we did our check.\n if (!LOCALES.containsKey(languageName)) {\n LOC...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_8
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/hash/HashTokenizerTest.java", "identifier": "HashTokenizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testManyIncrementalAdds() throws Exception {\n final int maxNGramLength = 3;\n HashTokenizer tokenizer = new HashTokenizer(maxNGramLength);\n\n final int numBigrams = 1000;\n int numNGrams = 0;\n\n for (int i = 0; i < numBigrams; i++) {\n ...
{ "fields": [], "file": "core/src/main/java/org/krugler/yalder/hash/HashTokenizer.java", "identifier": "HashTokenizer", "interfaces": "", "methods": [ { "class_method_signature": "HashTokenizer.HashTokenizer(int maxNGramLength)", "constructor": true, "full_signature": "public HashTokeni...
{ "body": "public int next() {\n if (!hasNext()) {\n throw new IllegalStateException(\"No next ngram hash to return\");\n }\n\n int hash = calcHash(_normalized, _normalizedPos, _curNGramLength);\n\n nextNGram();\n\n return hash;\n }", "class_method_signature": "HashT...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_9
{ "fields": [], "file": "tika/src/test/java/org/krugler/yalder/tika/YalderLangDetectorTest.java", "identifier": "YalderLangDetectorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test() throws Exception {\n AutoDetectParser parser = new AutoDetectParser();\n LanguageDetector detector = new YalderLangDetector().loadModels();\n LanguageHandler handler = new LanguageHandler(detector);\n Metadata metadata = new Metadata();\n try...
{ "fields": [ { "declarator": "detector", "modifier": "private", "original_string": "private HashLanguageDetector detector;", "type": "HashLanguageDetector", "var_name": "detector" }, { "declarator": "models", "modifier": "", "original_string": "Collection<B...
{ "body": "@Override\n public LanguageDetector loadModels() throws IOException {\n models = ModelLoader.loadModelsFromResources();\n detector = new HashLanguageDetector(models);\n\n return this;\n }", "class_method_signature": "YalderLangDetector.loadModels()", "constructor": false, "...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
31924536_5
{ "fields": [], "file": "core/src/test/java/org/krugler/yalder/LanguageLocaleTest.java", "identifier": "LanguageLocaleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testScriptFromRegion() {\n LanguageLocale withRegion = LanguageLocale.fromString(\"zh-TW\");\n LanguageLocale withScript = LanguageLocale.fromString(\"zh-Hant\");\n assertEquals(withRegion, withScript);\n \n withScript = LanguageLocale.fromString(\"...
{ "fields": [ { "declarator": "LOCALES = new HashMap<String, LanguageLocale>()", "modifier": "private static", "original_string": "private static Map<String, LanguageLocale> LOCALES = new HashMap<String, LanguageLocale>();", "type": "Map<String, LanguageLocale>", "var_name": "LOCALES...
{ "body": "public static LanguageLocale fromString(String languageName) {\n if (!LOCALES.containsKey(languageName)) {\n\n synchronized (LOCALES) {\n // Make sure nobody added it after we did our check.\n if (!LOCALES.containsKey(languageName)) {\n LOC...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 31924536, "size": 27234, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/kkrugler/yalder" }
27217073_55
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void cellメソッドでオブジェクトが正常に取得できる() {\n EntitySetAccessor cell = EsModel.cell();\n assertNotNull(cell);\n assertEquals(\"Cell\", cell.getType());\n }", "class_method_signature": "EsModelTest.cell", "constructor": false, "full_signature": "@Test public void cell",...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EntitySetAccessor cell() {\n return new CellAccessor(idxAdmin(), Cell.EDM_TYPE_NAME, EsIndex.CELL_ROUTING_KEY_NAME);\n }", "class_method_signature": "EsModel.cell()", "constructor": false, "full_signature": "public static EntitySetAccessor cell()", "identifier": "cell", "i...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_14
{ "fields": [ { "declarator": "UNIT_USER_NAME = \"index_for_test\"", "modifier": "private static final", "original_string": "private static final String UNIT_USER_NAME = \"index_for_test\";", "type": "String", "var_name": "UNIT_USER_NAME" }, { "declarator": "UNIT_PREFIX...
{ "body": "@Test\n public void update処理が正常に終了する() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID);\n DavNode davNode = createTestDavNode();\n...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DavNodeAccessor.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DavNodeAccessor.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/com/fujit...
{ "body": "public DcIndexResponse update(String id, DavNode davNode) {\n return this.update(id, davNode, -1);\n }", "class_method_signature": "DavNodeAccessor.update(String id, DavNode davNode)", "constructor": false, "full_signature": "public DcIndexResponse update(String id, DavNode davNode)", "id...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_43
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void isChangedメソッドでMemcachedへの接続に失敗した場合Trueを返すこと() throws Exception {\n String nodeId = \"nodeId\";\n Map<String, Object> data = new HashMap<String, Object>();\n data.put(\"testKey\", \"testValue\");\n\n // MemcachedClientの...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_38
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void インデックスが存在しない場合にdelete処理でnullが返却される() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n DcDeleteResponse response = dsa.delete(\...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcDeleteResponse delete(final String docId, final long version) {\n try {\n return this.type.delete(docId, version);\n } catch (EsClientException.EsIndexMissingException e) {\n DcCoreLog.Server.ES_INDEX_NOT_EXIST.params(this.index.getName()).writeLog();\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_80
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモードではない状態でPOSTメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(false);\n List<PathSegment> pathSe...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_8
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test\n public void ローテートされたADS書き込み失敗ログがファイルではない場合にログ削除が正常終了すること() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log.%d\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File file = new File(\"./\", fileName);\n RollingAdsWriteFailureLo...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public synchronized void deleteRotatedLog() throws AdsWriteFailureLogException {\n closeRotatedFile();\n super.deleteRotatedLog(rotatedAdsWriteFailureLog);\n }", "class_method_signature": "RollingAdsWriteFailureLog.deleteRotatedLog()", "constructor": false, "full_signature": "public ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_79
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DcCoreException.class)\n public void ReadDeleteOnlyモード時にACLメソッドが実行された場合は503が返却されること() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<Path...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_59
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void unitCtlLinkメソッドでオブジェクトが正常に取得できる() {\n ODataLinkAccessor unitCtlLink = EsModel.unitCtlLink(\"TestCellID\");\n assertNotNull(unitCtlLink);\n assertEquals(\"link\", unitCtlLink.getType());\n }", "class_method_signature": "EsModelTest.unitCtlLink", "constructo...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static ODataLinkAccessor unitCtlLink(String cellId) {\n return new ODataLinkAccessor(idxAdmin(), TYPE_CTL_LINK, cellId);\n }", "class_method_signature": "EsModel.unitCtlLink(String cellId)", "constructor": false, "full_signature": "public static ODataLinkAccessor unitCtlLink(String c...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_18
{ "fields": [ { "declarator": "UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix()", "modifier": "private static final", "original_string": "private static final String UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix();", "type": "String", "var_name": "UNIT_PREFIX" }, { "declarator...
{ "body": "@Test\n public void create処理が正常に終了する() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID);\n LinkDocHandler docHandler = createTestL...
{ "fields": [], "file": "core/src/main/java/com/fujitsu/dc/core/model/impl/es/accessor/ODataLinkAccessor.java", "identifier": "ODataLinkAccessor", "interfaces": "", "methods": [ { "class_method_signature": "ODataLinkAccessor.ODataLinkAccessor(EsIndex index, String name, String routingId)", "co...
{ "body": "public DcIndexResponse create(final LinkDocHandler docHandler) {\n String id = DcUUID.randomUUID();\n return this.create(id, docHandler);\n }", "class_method_signature": "ODataLinkAccessor.create(final LinkDocHandler docHandler)", "constructor": false, "full_signature": "public DcInd...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_34
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void count処理でクエリに空のクエリを指定した場合全件数取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new HashMap<Object...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public long count(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n requestQuery....
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_63
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/lock/CellLockManagerTest.java", "identifier": "CellLockManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void Cell参照カウントが存在しない場合() {\n try {\n long count = CellLockManager.getReferenceCount(\"TestingCellId\");\n assertEquals(-1, count);\n } catch (DcCoreException e) {\n fail();\n }\n }", "class_method_signature": "CellLockManagerTest...
{ "fields": [ { "declarator": "CELL_STATUS_NORMAL = 0L", "modifier": "public static final", "original_string": "public static final long CELL_STATUS_NORMAL = 0L;", "type": "long", "var_name": "CELL_STATUS_NORMAL" }, { "declarator": "CELL_STATUS_BULK_DELETION = 1L", ...
{ "body": "public static long getReferenceCount(String cellId) {\n String key = REFERENCE_COUNT_PREFIX + cellId;\n long count = singleton.doGetReferenceCount(key);\n return count;\n }", "class_method_signature": "CellLockManager.getReferenceCount(String cellId)", "constructor": false, "...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_75
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DcCoreException.class)\n public void ReadDeleteOnlyモード時にPUTメソッドが実行された場合は503が返却されること() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<Path...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_4
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test(expected = AdsWriteFailureLogException.class)\n public void ローテートされたADS書き込み失敗ログのファイル名が論理削除ファイルの場合にエラーとなること() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log.%d.done\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File file = new File...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public static long getCreatedTimeFromFileName(String pcsVersion, File rotatedAdsWriteFailureLog)\n throws AdsWriteFailureLogException {\n final String messageFormat = \"Illegal Rotated adsWriteFailureLog file name format. [%s]\";\n\n if (!rotatedAdsWriteFailureLog.isFile()) {\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_22
{ "fields": [ { "declarator": "UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix()", "modifier": "private static final", "original_string": "private static final String UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix();", "type": "String", "var_name": "UNIT_PREFIX" }, { "declarator...
{ "body": "@Test\n public void delete処理が正常に終了する() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID);\n LinkDocHandler docHandler = createTestL...
{ "fields": [], "file": "core/src/main/java/com/fujitsu/dc/core/model/impl/es/accessor/ODataLinkAccessor.java", "identifier": "ODataLinkAccessor", "interfaces": "", "methods": [ { "class_method_signature": "ODataLinkAccessor.ODataLinkAccessor(EsIndex index, String name, String routingId)", "co...
{ "body": "public DcDeleteResponse delete(final LinkDocHandler docHandler) {\n return this.delete(docHandler, -1);\n }", "class_method_signature": "ODataLinkAccessor.delete(final LinkDocHandler docHandler)", "constructor": false, "full_signature": "public DcDeleteResponse delete(final LinkDocHandler d...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_23
{ "fields": [ { "declarator": "UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix()", "modifier": "private static final", "original_string": "private static final String UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix();", "type": "String", "var_name": "UNIT_PREFIX" }, { "declarator...
{ "body": "@Test\n public void delete処理にてAdsが例外を上げた場合でも正常に終了すること() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID);\n LinkDocHandler docHand...
{ "fields": [], "file": "core/src/main/java/com/fujitsu/dc/core/model/impl/es/accessor/ODataLinkAccessor.java", "identifier": "ODataLinkAccessor", "interfaces": "", "methods": [ { "class_method_signature": "ODataLinkAccessor.ODataLinkAccessor(EsIndex index, String name, String routingId)", "co...
{ "body": "public DcDeleteResponse delete(final LinkDocHandler docHandler) {\n return this.delete(docHandler, -1);\n }", "class_method_signature": "ODataLinkAccessor.delete(final LinkDocHandler docHandler)", "constructor": false, "full_signature": "public DcDeleteResponse delete(final LinkDocHandler d...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_5
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test(expected = AdsWriteFailureLogException.class)\n public void ローテートされたADS書き込み失敗ログのファイル名書式が正しくない場合にエラーとなること1() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log\", PIO_VERSION_DUMMY);\n File file = new File(\"./\", fileName);\n ...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public static long getCreatedTimeFromFileName(String pcsVersion, File rotatedAdsWriteFailureLog)\n throws AdsWriteFailureLogException {\n final String messageFormat = \"Illegal Rotated adsWriteFailureLog file name format. [%s]\";\n\n if (!rotatedAdsWriteFailureLog.isFile()) {\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_74
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DcCoreException.class)\n public void ReadDeleteOnlyモード時にPOSTメソッドが実行された場合は503が返却されること() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<Pat...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_62
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/lock/AccountLockManagerTest.java", "identifier": "AccountLockManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void AccountLock作成_更新ができること() {\n try {\n AccountLockManager.registAccountLockObjct(\"AccountId\");\n AccountLockManager.registAccountLockObjct(\"AccountId\");\n } catch (DcCoreException e) {\n fail();\n }\n }", "class_method_sign...
{ "fields": [ { "declarator": "CATEGORY_ACCOUNT_LOCK = \"AccountLock_\"", "modifier": "public static final", "original_string": "public static final String CATEGORY_ACCOUNT_LOCK = \"AccountLock_\";", "type": "String", "var_name": "CATEGORY_ACCOUNT_LOCK" } ], "file": "core/src...
{ "body": "public static void registAccountLockObjct(final String accountId) {\n String key = CATEGORY_ACCOUNT_LOCK + accountId;\n Boolean success = singleton.doPutAccountLock(key, \"\", accountLockLifeTime);\n if (success) {\n return;\n }\n throw DcCoreException.Server....
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_35
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void count処理でクエリに3件ヒットするクエリを指定した場合件数が3で取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n Map<String, Object> body = new Hash...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public long count(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n requestQuery....
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_19
{ "fields": [ { "declarator": "UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix()", "modifier": "private static final", "original_string": "private static final String UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix();", "type": "String", "var_name": "UNIT_PREFIX" }, { "declarator...
{ "body": "@Test\n public void create処理にてAdsが例外を上げた場合でも正常に終了すること() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID);\n LinkDocHandler docHand...
{ "fields": [], "file": "core/src/main/java/com/fujitsu/dc/core/model/impl/es/accessor/ODataLinkAccessor.java", "identifier": "ODataLinkAccessor", "interfaces": "", "methods": [ { "class_method_signature": "ODataLinkAccessor.ODataLinkAccessor(EsIndex index, String name, String routingId)", "co...
{ "body": "public DcIndexResponse create(final LinkDocHandler docHandler) {\n String id = DcUUID.randomUUID();\n return this.create(id, docHandler);\n }", "class_method_signature": "ODataLinkAccessor.create(final LinkDocHandler docHandler)", "constructor": false, "full_signature": "public DcInd...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }