id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
1867246_58
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processingFiler", "modifier": "", "original_string": "SAMLProcessingFilter proc...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testMissingProcessor() {\n expect(request.getContextPath()).andReturn(\"/saml\");\n processingFiler.setSAMLProcessor(null);\n }", "class_method_signature": "SAMLProcessingFilterTest.testMissingProcessor()", "constructor"...
{ "fields": [ { "declarator": "processor", "modifier": "protected", "original_string": "protected SAMLProcessor processor;", "type": "SAMLProcessor", "var_name": "processor" }, { "declarator": "contextProvider", "modifier": "protected", "original_string": "p...
{ "body": "@Autowired\n public void setSAMLProcessor(SAMLProcessor processor) {\n Assert.notNull(processor, \"SAML Processor can't be null\");\n this.processor = processor;\n }", "class_method_signature": "SAMLProcessingFilter.setSAMLProcessor(SAMLProcessor processor)", "constructor": false, ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_19
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test(expected = MetadataProviderException.class)\n public void testInvalidIDPNameSet() throws Exception {\n options.setIdp(\"testNonExistent\");\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n verifyMock();\n }", "class_method_signat...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_45
{ "fields": [ { "declarator": "attributesObject", "modifier": "", "original_string": "SAMLCollection<Attribute> attributesObject;", "type": "SAMLCollection<Attribute>", "var_name": "attributesObject" }, { "declarator": "attributes", "modifier": "", "original...
{ "body": "@Test\n public void testGetInnerObject() {\n assertEquals(attributes, attributesObject.getObject());\n }", "class_method_signature": "SAMLCollectionTest.testGetInnerObject()", "constructor": false, "full_signature": "@Test public void testGetInnerObject()", "identifier": "testGetInnerO...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/parser/SAMLCollection.java", "identifier": "SAMLCollection", "interfaces": "", "methods": [ { "class_method_signature": "SAMLCollection.SAMLCollection(List<T> object)", "constructor": true,...
{ "body": "@Override\n public List<T> getObject() {\n if (object == null) { // Lazy parse\n parse();\n }\n return super.getObject();\n }", "class_method_signature": "SAMLCollection.getObject()", "constructor": false, "full_signature": "@Override public List<T> getObject()",...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_0
{ "fields": [], "file": "spring-security-saml/saml2-core/src/test/java/org/springframework/security/providers/ExpiringUsernameAuthenticationTokenTest.java", "identifier": "ExpiringUsernameAuthenticationTokenTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExpirationNull() throws Exception {\n ExpiringUsernameAuthenticationToken t = new ExpiringUsernameAuthenticationToken(null, null, null, new LinkedList<GrantedAuthority>());\n assertTrue(t.isAuthenticated());\n }", "class_method_signature": "ExpiringUsernameAuth...
{ "fields": [ { "declarator": "tokenExpiration", "modifier": "private", "original_string": "private Date tokenExpiration;", "type": "Date", "var_name": "tokenExpiration" } ], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/providers/Expirin...
{ "body": "@Override\n public boolean isAuthenticated() {\n if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {\n return false;\n } else {\n return super.isAuthenticated();\n }\n }", "class_method_signature": "ExpiringUsernameAuthenticationTo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_12
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfileConsumerImpl profile...
{ "body": "@Test(expected = SAMLException.class)\n public void testMissingResponse() throws Exception {\n messageContext.setInboundMessage(null);\n profile.processAuthenticationResponse(messageContext, storage);\n }", "class_method_signature": "WebSSOProfileConsumerImplTest.testMissingResponse()...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public SAMLCredential processAuthenticationResponse(SAMLMessageContext context, SAMLMessageStorage protocolCache) throws SAMLException, org.opensaml.xml.security.SecurityException, ValidationException, DecryptionException {\n\n AuthnRequest request = null;\n SAMLObject message = context.getIn...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_53
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "keyManager", "modifier": "private", "original_string": "private ...
{ "body": "@Test(expected = RuntimeException.class)\n public void testInitialize() {\n new JKSKeyManager(null, \"xxx\", null, null);\n }", "class_method_signature": "JKSKeyManagerTest.testInitialize()", "constructor": false, "full_signature": "@Test(expected = RuntimeException.class) public void te...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(JKSKeyManager.class)", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(JKSKeyManager.class);", "type": "Logger", "var_name": "log" }, { "declarator": "creden...
{ "body": "private KeyStore initialize(Resource storeFile, String storePass, String storeType) {\n InputStream inputStream = null;\n try {\n inputStream = storeFile.getInputStream();\n KeyStore ks = KeyStore.getInstance(storeType);\n ks.load(inputStream, storePass.toChar...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_28
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test\n public void testPassive() throws Exception {\n options.setPassive(true);\n storage.storeMessage((String) notNull(), (XMLObject) notNull());\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n AuthnRequest authnRequest = (AuthnRe...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_69
{ "fields": [ { "declarator": "provider", "modifier": "private", "original_string": "private KerberosAuthenticationProvider provider;", "type": "KerberosAuthenticationProvider", "var_name": "provider" }, { "declarator": "kerberosClient", "modifier": "private", ...
{ "body": "@Test\n public void testLoginOk() throws Exception {\n when(userDetailsService.loadUserByUsername(TEST_USER)).thenReturn(USER_DETAILS);\n when(kerberosClient.login(TEST_USER, TEST_PASSWORD)).thenReturn(TEST_USER);\n \n Authentication authenticate = provider.authenticate(INPUT...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(KerberosAuthenticationProvider.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(KerberosAuthenticationProvider.class);", "type": "Log", "var_name": "LOG" }, ...
{ "body": "public Authentication authenticate(Authentication authentication) throws AuthenticationException {\n UsernamePasswordAuthenticationToken auth = (UsernamePasswordAuthenticationToken) authentication;\n String validatedUsername = kerberosClient.login(auth.getName(), auth.getCredentials().toStrin...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_49
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processor", "modifier": "", "original_string": "SAMLProcessorImpl processor;", ...
{ "body": "@Test(expected = SAMLException.class)\n public void testUnknownDecoder() throws Exception {\n prepareHttpRequest(\"message/SAMLResponse.xml\", \"HEAD\", \"http://localhost:8080/url\", \"application/json\");\n replayMock();\n MessageDecoder decoder = processor.getBinding(new HttpServ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLProcessorImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLProcessorImpl.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "protected SAMLBinding getBinding(InTransport transport) throws SAMLException {\n\n for (SAMLBinding binding : bindings) {\n if (binding.supports(transport)) {\n return binding;\n }\n }\n\n throw new SAMLException(\"Unsupported request\");\n\n }",...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_24
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test\n public void testInvalidBinding() throws Exception {\n options.setBinding(\"invalid\");\n storage.storeMessage((String) notNull(), (XMLObject) notNull());\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n verifyMock();\n }",...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_65
{ "fields": [ { "declarator": "filter", "modifier": "private", "original_string": "private SpnegoAuthenticationProcessingFilter filter;", "type": "SpnegoAuthenticationProcessingFilter", "var_name": "filter" }, { "declarator": "authenticationManager", "modifier": "...
{ "body": "@Test\n public void testNoHeader() throws Exception {\n filter.doFilter(request, response, chain);\n // If the header is not present, the filter is not allowed to call\n // authenticate()\n verify(authenticationManager, never()).authenticate(any(Authentication.class));\n ...
{ "fields": [ { "declarator": "authenticationManager", "modifier": "private", "original_string": "private AuthenticationManager authenticationManager;", "type": "AuthenticationManager", "var_name": "authenticationManager" }, { "declarator": "successHandler", "modi...
{ "body": "public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) res;\n\n if (skipIfAlreadyAuthenticated) {\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_32
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "manager", "modifier": "", "original_string": "MetadataManager manager;", ...
{ "body": "@Test\n public void testNullEntityId() throws Exception {\n manager.getExtendedMetadata(null);\n }", "class_method_signature": "MetadataManagerTest.testNullEntityId()", "constructor": false, "full_signature": "@Test public void testNullEntityId()", "identifier": "testNullEntityId", "...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(MetadataManager.class)", "modifier": "protected final", "original_string": "protected final Logger log = LoggerFactory.getLogger(MetadataManager.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "public ExtendedMetadata getExtendedMetadata(String entityID) throws MetadataProviderException {\n\n try {\n\n lock.readLock().lock();\n\n for (MetadataProvider provider : getProviders()) {\n ExtendedMetadata extendedMetadata = getExtendedMetadata(entityID, provid...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_33
{ "fields": [ { "declarator": "request", "modifier": "", "original_string": "HttpServletRequest request;", "type": "HttpServletRequest", "var_name": "request" }, { "declarator": "response", "modifier": "", "original_string": "HttpServletResponse response;", ...
{ "body": "@Test\n public void testPopulateLocalEntityNullPath() throws Exception {\n expect(request.getContextPath()).andReturn(\"\");\n replayMock();\n SAMLMessageContext context = contextProvider.getLocalEntity(request, response);\n assertEquals(metadata.getHostedSPName(), context.ge...
{ "fields": [ { "declarator": "encryptedKeyResolver = new ChainingEncryptedKeyResolver()", "modifier": "private static", "original_string": "private static ChainingEncryptedKeyResolver encryptedKeyResolver = new ChainingEncryptedKeyResolver();", "type": "ChainingEncryptedKeyResolver", ...
{ "body": "public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException {\n\n SAMLMessageContext context = new SAMLMessageContext();\n populateEntityId(context, request.getContextPath());\n populateContext(request, response, c...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_64
{ "fields": [ { "declarator": "provider", "modifier": "private", "original_string": "private KerberosServiceAuthenticationProvider provider;", "type": "KerberosServiceAuthenticationProvider", "var_name": "provider" }, { "declarator": "ticketValidator", "modifier":...
{ "body": "@Test(expected=BadCredentialsException.class)\n public void testTicketValidationWrong() throws Exception {\n // stubbing\n when(ticketValidator.validateTicket(TEST_TOKEN)).thenThrow(new BadCredentialsException(\"\"));\n\n // testing\n provider.authenticate(INPUT_TOKEN);\n ...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(KerberosServiceAuthenticationProvider.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(KerberosServiceAuthenticationProvider.class);", "type": "Log", "var_name": "L...
{ "body": "@Override\n public Authentication authenticate(Authentication authentication)\n throws AuthenticationException {\n KerberosServiceRequestToken auth = (KerberosServiceRequestToken) authentication;\n byte[] token = auth.getToken();\n LOG.debug(\"Try to validate Kerberos Tok...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_25
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test(expected = MetadataProviderException.class)\n public void testBindingUnsupportedByIDP() throws Exception {\n options.setIdp(\"http://localhost:8080/noBinding\");\n options.setBinding(\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\");\n replyMock();\n profile.sendAuthe...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_48
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processor", "modifier": "", "original_string": "SAMLProcessorImpl processor;", ...
{ "body": "@Test\n public void testGETDecoder() throws Exception {\n prepareHttpRequest(\"message/SAMLResponse.xml\", \"GET\", \"http://localhost:8080/url\", \"text/html\");\n replayMock();\n MessageDecoder decoder = processor.getBinding(new HttpServletRequestAdapter(request)).getMessageDecode...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLProcessorImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLProcessorImpl.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "protected SAMLBinding getBinding(InTransport transport) throws SAMLException {\n\n for (SAMLBinding binding : bindings) {\n if (binding.supports(transport)) {\n return binding;\n }\n }\n\n throw new SAMLException(\"Unsupported request\");\n\n }",...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_68
{ "fields": [ { "declarator": "entryPoint = new SpnegoEntryPoint()", "modifier": "private", "original_string": "private SpnegoEntryPoint entryPoint = new SpnegoEntryPoint();", "type": "SpnegoEntryPoint", "var_name": "entryPoint" } ], "file": "spring-security-kerberos/spring-s...
{ "body": "@Test\n public void testEntryPointOk() throws Exception {\n HttpServletResponse response = mock(HttpServletResponse.class);\n\n entryPoint.commence(null, response, null);\n\n verify(response).addHeader(\"WWW-Authenticate\", \"Negotiate\");\n verify(response).setStatus(HttpSer...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(SpnegoEntryPoint.class)", "modifier": "private static final", "original_string": "private static final Log LOG = LogFactory.getLog(SpnegoEntryPoint.class);", "type": "Log", "var_name": "LOG" } ], "file": "spring-security-...
{ "body": "@Override\n public void commence(HttpServletRequest request, HttpServletResponse response,\n AuthenticationException ex) throws IOException, ServletException {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Sending back Negotiate Header for request: \"+request.getRequestURL());...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_29
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test\n public void testForce() throws Exception {\n options.setForceAuthN(true);\n storage.storeMessage((String) notNull(), (XMLObject) notNull());\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n AuthnRequest authnRequest = (AuthnR...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_52
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "keyManager", "modifier": "private", "original_string": "private ...
{ "body": "@Test\n public void testGetKey() {\n assertNotNull(keyManager.getPublicKey(\"apollo\"));\n }", "class_method_signature": "JKSKeyManagerTest.testGetKey()", "constructor": false, "full_signature": "@Test public void testGetKey()", "identifier": "testGetKey", "invocations": [ "asser...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(JKSKeyManager.class)", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(JKSKeyManager.class);", "type": "Logger", "var_name": "log" }, { "declarator": "creden...
{ "body": "public PublicKey getPublicKey(String alias) {\n X509Certificate x509Certificate = getCertificate(alias);\n if (x509Certificate != null) {\n return x509Certificate.getPublicKey();\n } else {\n return null;\n }\n }", "class_method_signature": "JKSKeyMana...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_13
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfileConsumerImpl profile...
{ "body": "@Test(expected = SAMLException.class)\n public void testInvalidResponseObject() throws Exception {\n SAMLObjectBuilder<AuthnRequest> builder = (SAMLObjectBuilder<AuthnRequest>) builderFactory.getBuilder(AuthnRequest.DEFAULT_ELEMENT_NAME);\n AuthnRequest authnRequest = builder.buildObject()...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public SAMLCredential processAuthenticationResponse(SAMLMessageContext context, SAMLMessageStorage protocolCache) throws SAMLException, org.opensaml.xml.security.SecurityException, ValidationException, DecryptionException {\n\n AuthnRequest request = null;\n SAMLObject message = context.getIn...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_1
{ "fields": [], "file": "spring-security-saml/saml2-core/src/test/java/org/springframework/security/providers/ExpiringUsernameAuthenticationTokenTest.java", "identifier": "ExpiringUsernameAuthenticationTokenTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExpirationFuture() throws Exception {\n Date future = new DateTime().plusHours(2).toDate();\n ExpiringUsernameAuthenticationToken t = new ExpiringUsernameAuthenticationToken(future, null, null, new LinkedList<GrantedAuthority>());\n assertTrue(t.isAuthenticat...
{ "fields": [ { "declarator": "tokenExpiration", "modifier": "private", "original_string": "private Date tokenExpiration;", "type": "Date", "var_name": "tokenExpiration" } ], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/providers/Expirin...
{ "body": "@Override\n public boolean isAuthenticated() {\n if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {\n return false;\n } else {\n return super.isAuthenticated();\n }\n }", "class_method_signature": "ExpiringUsernameAuthenticationTo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_44
{ "fields": [ { "declarator": "assertionObject", "modifier": "", "original_string": "SAMLObject<Assertion> assertionObject;", "type": "SAMLObject<Assertion>", "var_name": "assertionObject" }, { "declarator": "assertion", "modifier": "", "original_string": "A...
{ "body": "@Test(expected = IOException.class)\n public void testMarshallingError() throws Exception {\n TestObject to = new TestObject(\"xxx\", \"\", \"\");\n SAMLObject<TestObject> tso = new SAMLObject<TestObject>(to);\n\n Marshaller mock = createMock(Marshaller.class);\n Configuratio...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/parser/SAMLObject.java", "identifier": "SAMLObject", "interfaces": "", "methods": [ { "class_method_signature": "SAMLObject.SAMLObject(T object)", "constructor": true, "full_signature...
{ "body": "private void writeObject(ObjectOutputStream out) throws IOException {\n try {\n if (serializedObject == null) {\n serializedObject = XMLHelper.nodeToString(marshallMessage(getObject()));\n }\n out.writeUTF((String) serializedObject);\n } catch (...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_51
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "keyManager", "modifier": "private", "original_string": "private ...
{ "body": "@Test\n public void testGetKeystore() {\n assertNotNull(keyManager.getKeyStore());\n }", "class_method_signature": "JKSKeyManagerTest.testGetKeystore()", "constructor": false, "full_signature": "@Test public void testGetKeystore()", "identifier": "testGetKeystore", "invocations": [ ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(JKSKeyManager.class)", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(JKSKeyManager.class);", "type": "Logger", "var_name": "log" }, { "declarator": "creden...
{ "body": "public KeyStore getKeyStore() {\n return keyStore;\n }", "class_method_signature": "JKSKeyManager.getKeyStore()", "constructor": false, "full_signature": "public KeyStore getKeyStore()", "identifier": "getKeyStore", "invocations": [], "modifiers": "public", "parameters": "()", "re...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_10
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "entryPoint", "modifier": "", "original_string": "SAMLEntryPoint entryPoint;", ...
{ "body": "@Test\n public void testECPRequest_no() throws Exception {\n\n expect(request.getHeader(\"Accept\")).andReturn(\n \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n expect(request.getHeader(org.springframework.security.saml.SAMLConstants.PAOS_HTTP_HEADER)).a...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SAMLEntryPoint.class)", "modifier": "protected final static", "original_string": "protected final static Logger logger = LoggerFactory.getLogger(SAMLEntryPoint.class);", "type": "Logger", "var_name": "logger" }, ...
{ "body": "protected boolean isECPRequest(HttpServletRequest request) {\n\n String acceptHeader = request.getHeader(\"Accept\");\n String paosHeader = request.getHeader(SAMLConstants.PAOS_HTTP_HEADER);\n return acceptHeader != null && paosHeader != null\n && acceptHeader.contains(S...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_2
{ "fields": [], "file": "spring-security-saml/saml2-core/src/test/java/org/springframework/security/providers/ExpiringUsernameAuthenticationTokenTest.java", "identifier": "ExpiringUsernameAuthenticationTokenTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExpirationFutureChange() throws Exception {\n Date future = new DateTime().plusMillis(300).toDate();\n ExpiringUsernameAuthenticationToken t = new ExpiringUsernameAuthenticationToken(future, null, null, new LinkedList<GrantedAuthority>());\n assertTrue(t.isAu...
{ "fields": [ { "declarator": "tokenExpiration", "modifier": "private", "original_string": "private Date tokenExpiration;", "type": "Date", "var_name": "tokenExpiration" } ], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/providers/Expirin...
{ "body": "@Override\n public boolean isAuthenticated() {\n if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {\n return false;\n } else {\n return super.isAuthenticated();\n }\n }", "class_method_signature": "ExpiringUsernameAuthenticationTo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_47
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processor", "modifier": "", "original_string": "SAMLProcessorImpl processor;", ...
{ "body": "@Test(expected = SecurityException.class)\n public void testMessageRecipientInvalid() throws Exception {\n prepareHttpRequest(\"message/SAMLResponse.xml\", \"POST\", \"http://localhost:8080/unexpectedURL\", \"text/html\");\n replayMock();\n processor.retrieveMessage(samlContext);\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLProcessorImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLProcessorImpl.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public SAMLMessageContext retrieveMessage(SAMLMessageContext samlContext, SAMLBinding binding) throws SAMLException, MetadataProviderException, MessageDecodingException, org.opensaml.xml.security.SecurityException {\n\n log.debug(\"Retrieving message using binding {}\", binding.getCommunicationProfi...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_30
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test\n public void testDisallowProxy() throws Exception {\n options.setProxyCount(null);\n storage.storeMessage((String) notNull(), (XMLObject) notNull());\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n AuthnRequest authnRequest =...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_67
{ "fields": [ { "declarator": "filter", "modifier": "private", "original_string": "private SpnegoAuthenticationProcessingFilter filter;", "type": "SpnegoAuthenticationProcessingFilter", "var_name": "filter" }, { "declarator": "authenticationManager", "modifier": "...
{ "body": "@Test\n public void testAlreadyAuthenticatedNotActive() throws Exception {\n try {\n Authentication existingAuth = new UsernamePasswordAuthenticationToken(\"mike\", \"mike\",\n AuthorityUtils.createAuthorityList(\"ROLE_TEST\"));\n SecurityContextHolder.get...
{ "fields": [ { "declarator": "authenticationManager", "modifier": "private", "original_string": "private AuthenticationManager authenticationManager;", "type": "AuthenticationManager", "var_name": "authenticationManager" }, { "declarator": "successHandler", "modi...
{ "body": "public void setSkipIfAlreadyAuthenticated(boolean skipIfAlreadyAuthenticated) {\n this.skipIfAlreadyAuthenticated = skipIfAlreadyAuthenticated;\n }", "class_method_signature": "SpnegoAuthenticationProcessingFilter.setSkipIfAlreadyAuthenticated(boolean skipIfAlreadyAuthenticated)", "constructo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_26
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test\n public void testNoSigningRequired() throws Exception {\n options.setIdp(\"http://localhost:8080/noSign\");\n storage.storeMessage((String) notNull(), (XMLObject) notNull());\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n Au...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_27
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test(expected = MetadataProviderException.class)\n public void testNoAvailableBinding() throws Exception {\n options.setIdp(\"http://localhost:8080/nonoBinding\");\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n verifyMock();\n }", "...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_66
{ "fields": [ { "declarator": "filter", "modifier": "private", "original_string": "private SpnegoAuthenticationProcessingFilter filter;", "type": "SpnegoAuthenticationProcessingFilter", "var_name": "filter" }, { "declarator": "authenticationManager", "modifier": "...
{ "body": "@Test\n public void testAlreadyAuthenticated() throws Exception {\n try {\n Authentication existingAuth = new UsernamePasswordAuthenticationToken(\"mike\", \"mike\",\n AuthorityUtils.createAuthorityList(\"ROLE_TEST\"));\n SecurityContextHolder.getContext()...
{ "fields": [ { "declarator": "authenticationManager", "modifier": "private", "original_string": "private AuthenticationManager authenticationManager;", "type": "AuthenticationManager", "var_name": "authenticationManager" }, { "declarator": "successHandler", "modi...
{ "body": "public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) res;\n\n if (skipIfAlreadyAuthenticated) {\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_31
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "generator", "modifier": "", "original_string": "MetadataGenerator generator;", ...
{ "body": "@Test\n public void testGenerateMetadata() {\n\n generator.setEntityBaseURL(\"http://localhost\");\n generator.setEntityId(\"my_entity\");\n EntityDescriptor metadata = generator.generateMetadata();\n\n assertEquals(\"my_entity\", metadata.getEntityID());\n SPSSODescri...
{ "fields": [ { "declarator": "entityId", "modifier": "private", "original_string": "private String entityId;", "type": "String", "var_name": "entityId" }, { "declarator": "entityBaseURL", "modifier": "private", "original_string": "private String entityBaseU...
{ "body": "public EntityDescriptor generateMetadata() {\n\n if (signingKey == null) {\n signingKey = keyManager.getDefaultCredentialName();\n }\n if (encryptionKey == null) {\n encryptionKey = keyManager.getDefaultCredentialName();\n }\n\n boolean requestSigned...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_46
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processor", "modifier": "", "original_string": "SAMLProcessorImpl processor;", ...
{ "body": "@Test\n public void testPOSTResponseParsing() throws Exception {\n prepareHttpRequest(\"message/SAMLResponse.xml\", \"POST\", \"http://localhost:8080/spring-security-saml2-webapp/saml/SSO\", \"text/html\");\n replayMock();\n SAMLMessageContext context = processor.retrieveMessage(sam...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLProcessorImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLProcessorImpl.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public SAMLMessageContext retrieveMessage(SAMLMessageContext samlContext, SAMLBinding binding) throws SAMLException, MetadataProviderException, MessageDecodingException, org.opensaml.xml.security.SecurityException {\n\n log.debug(\"Retrieving message using binding {}\", binding.getCommunicationProfi...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_3
{ "fields": [], "file": "spring-security-saml/saml2-core/src/test/java/org/springframework/security/providers/ExpiringUsernameAuthenticationTokenTest.java", "identifier": "ExpiringUsernameAuthenticationTokenTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNonAuthenticatedToken() throws Exception {\n ExpiringUsernameAuthenticationToken t = new ExpiringUsernameAuthenticationToken(null, null);\n assertFalse(t.isAuthenticated());\n }", "class_method_signature": "ExpiringUsernameAuthenticationTokenTest.testNonAuthent...
{ "fields": [ { "declarator": "tokenExpiration", "modifier": "private", "original_string": "private Date tokenExpiration;", "type": "Date", "var_name": "tokenExpiration" } ], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/providers/Expirin...
{ "body": "@Override\n public boolean isAuthenticated() {\n if (tokenExpiration != null && new Date().compareTo(tokenExpiration) >= 0) {\n return false;\n } else {\n return super.isAuthenticated();\n }\n }", "class_method_signature": "ExpiringUsernameAuthenticationTo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_11
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "entryPoint", "modifier": "", "original_string": "SAMLEntryPoint entryPoint;", ...
{ "body": "@Test\n public void testECPRequest_yes() throws Exception {\n\n expect(request.getHeader(\"Accept\")).andReturn(\"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5, application/vnd.paos+xml\");\n expect(request.getHeader(org.springframework...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SAMLEntryPoint.class)", "modifier": "protected final static", "original_string": "protected final static Logger logger = LoggerFactory.getLogger(SAMLEntryPoint.class);", "type": "Logger", "var_name": "logger" }, ...
{ "body": "protected boolean isECPRequest(HttpServletRequest request) {\n\n String acceptHeader = request.getHeader(\"Accept\");\n String paosHeader = request.getHeader(SAMLConstants.PAOS_HTTP_HEADER);\n return acceptHeader != null && paosHeader != null\n && acceptHeader.contains(S...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_50
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processor", "modifier": "", "original_string": "SAMLProcessorImpl processor;", ...
{ "body": "@Test(expected = SecurityException.class)\n public void testMessageInvalidSignature() throws Exception {\n prepareHttpRequest(\"message/SAMLResponseInvalidSignature.xml\", \"POST\", \"http://localhost:8081/spring-security-saml2-webapp/saml/SSO\", \"text/html\");\n replayMock();\n //...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLProcessorImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLProcessorImpl.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public SAMLMessageContext retrieveMessage(SAMLMessageContext samlContext, SAMLBinding binding) throws SAMLException, MetadataProviderException, MessageDecodingException, org.opensaml.xml.security.SecurityException {\n\n log.debug(\"Retrieving message using binding {}\", binding.getCommunicationProfi...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_36
{ "fields": [ { "declarator": "request", "modifier": "", "original_string": "HttpServletRequest request;", "type": "HttpServletRequest", "var_name": "request" }, { "declarator": "response", "modifier": "", "original_string": "HttpServletResponse response;", ...
{ "body": "@Test\n public void testPopulateLocalEntityAliasSPRole() throws Exception {\n expect(request.getContextPath()).andReturn(\"/SSO/alias/myAlias/sp\");\n replayMock();\n SAMLMessageContext context = contextProvider.getLocalEntity(request, response);\n assertEquals(\"testSP2\", c...
{ "fields": [ { "declarator": "encryptedKeyResolver = new ChainingEncryptedKeyResolver()", "modifier": "private static", "original_string": "private static ChainingEncryptedKeyResolver encryptedKeyResolver = new ChainingEncryptedKeyResolver();", "type": "ChainingEncryptedKeyResolver", ...
{ "body": "public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException {\n\n SAMLMessageContext context = new SAMLMessageContext();\n populateEntityId(context, request.getContextPath());\n populateContext(request, response, c...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_61
{ "fields": [ { "declarator": "token", "modifier": "", "original_string": "SAMLAuthenticationToken token;", "type": "SAMLAuthenticationToken", "var_name": "token" }, { "declarator": "context", "modifier": "", "original_string": "SAMLMessageContext context;",...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testSetAuthenticated() {\n token.setAuthenticated(true);\n }", "class_method_signature": "SAMLAuthenticationTokenTest.testSetAuthenticated()", "constructor": false, "full_signature": "@Test(expected = IllegalArgumentException...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "messageStore", "modifier": "private...
{ "body": "public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException {\n if (isAuthenticated) {\n throw new IllegalArgumentException(\n \"Cannot set this token to trusted - use constructor containing GrantedAuthority[]s instead\");\n }\n s...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_20
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test(expected = MetadataProviderException.class)\n public void testMissingSP() throws Exception {\n MetadataManager manager = context.getBean(\"metadata\", MetadataManager.class);\n while (manager.getProviders().size() > 0) {\n manager.removeMetadataProvider(manager.getProvider...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_8
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "entryPoint", "modifier": "", "original_string": "SAMLEntryPoint entryPoint;", ...
{ "body": "@Test\n public void testProcessFilter() {\n entryPoint.setFilterSuffix(\"/saml/sso\");\n expect(request.getRequestURI()).andReturn(\"/web/saml/sso\");\n expect(request.getRequestURI()).andReturn(\"/saml/sso\");\n expect(request.getRequestURI()).andReturn(\"/saml\");\n ...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SAMLEntryPoint.class)", "modifier": "protected final static", "original_string": "protected final static Logger logger = LoggerFactory.getLogger(SAMLEntryPoint.class);", "type": "Logger", "var_name": "logger" }, ...
{ "body": "protected boolean processFilter(HttpServletRequest request) {\n return SAMLUtil.processFilter(filterProcessesUrl, request);\n }", "class_method_signature": "SAMLEntryPoint.processFilter(HttpServletRequest request)", "constructor": false, "full_signature": "protected boolean processFilter(Ht...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_57
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "keyManager", "modifier": "private", "original_string": "private ...
{ "body": "@Test\n public void testGetCertificateNonExistent() {\n assertNull(keyManager.getCertificate(\"apollo13\"));\n }", "class_method_signature": "JKSKeyManagerTest.testGetCertificateNonExistent()", "constructor": false, "full_signature": "@Test public void testGetCertificateNonExistent()", ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(JKSKeyManager.class)", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(JKSKeyManager.class);", "type": "Logger", "var_name": "log" }, { "declarator": "creden...
{ "body": "public X509Certificate getCertificate(String alias) {\n if (alias == null || alias.length() == 0) {\n return null;\n }\n try {\n return (X509Certificate) keyStore.getCertificate(alias);\n } catch (Exception e) {\n log.error(\"Error loading certif...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_16
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfileConsumerImpl profile...
{ "body": "@Test\n public void testAuthnExactComparison() throws Exception {\n RequestedAuthnContext requestedAuthnContext = helper.getRequestedAuthnContext(AuthnContextComparisonTypeEnumeration.EXACT, Arrays.asList(\"test\", \"test2\"));\n AuthnContext authnContext = helper.getAuthnContext(helper.ge...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class);", "type": "Logger", "var_name": "log" ...
{ "body": "protected void verifyAuthnContext(RequestedAuthnContext requestedAuthnContext, AuthnContext receivedContext, SAMLMessageContext context) throws InsufficientAuthenticationException {\n\n if (requestedAuthnContext != null && AuthnContextComparisonTypeEnumeration.EXACT.equals(requestedAuthnContext.getC...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_4
{ "fields": [ { "declarator": "consumer", "modifier": "", "original_string": "WebSSOProfileConsumer consumer;", "type": "WebSSOProfileConsumer", "var_name": "consumer" }, { "declarator": "provider", "modifier": "", "original_string": "SAMLAuthenticationProvi...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testInvalidAuthenticationObject() {\n Authentication auth = new UsernamePasswordAuthenticationToken(\"user\", \"pass\");\n provider.authenticate(auth);\n }", "class_method_signature": "SAMLAuthenticationProviderTest.testIn...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLAuthenticationProvider.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLAuthenticationProvider.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\n if (!supports(authentication.getClass())) {\n throw new IllegalArgumentException(\"Only SAMLAuthenticationToken is supported, \" + authentication.getClass() + \" was attempted\");\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_41
{ "fields": [ { "declarator": "request", "modifier": "", "original_string": "HttpServletRequest request;", "type": "HttpServletRequest", "var_name": "request" }, { "declarator": "response", "modifier": "", "original_string": "HttpServletResponse response;", ...
{ "body": "@Test\n public void testPopulateCredentialLocalEntity() throws Exception {\n replayMock();\n SAMLCredential credential = getCredential(\"testSP2\");\n SAMLMessageContext context = contextProvider.getLocalEntity(request, response, credential);\n assertEquals(\"testSP2\", conte...
{ "fields": [ { "declarator": "encryptedKeyResolver = new ChainingEncryptedKeyResolver()", "modifier": "private static", "original_string": "private static ChainingEncryptedKeyResolver encryptedKeyResolver = new ChainingEncryptedKeyResolver();", "type": "ChainingEncryptedKeyResolver", ...
{ "body": "public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException {\n\n SAMLMessageContext context = new SAMLMessageContext();\n populateEntityId(context, request.getContextPath());\n populateContext(request, response, c...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_40
{ "fields": [ { "declarator": "request", "modifier": "", "original_string": "HttpServletRequest request;", "type": "HttpServletRequest", "var_name": "request" }, { "declarator": "response", "modifier": "", "original_string": "HttpServletResponse response;", ...
{ "body": "@Test(expected = MetadataProviderException.class)\n public void testPopulateLocalEntityComplexAliasIDPRole_missingRole_SP() throws Exception {\n expect(request.getContextPath()).andReturn(\"/saml/SSO/test/alias/myIdpAlias/test\");\n replayMock();\n SAMLMessageContext context = conte...
{ "fields": [ { "declarator": "encryptedKeyResolver = new ChainingEncryptedKeyResolver()", "modifier": "private static", "original_string": "private static ChainingEncryptedKeyResolver encryptedKeyResolver = new ChainingEncryptedKeyResolver();", "type": "ChainingEncryptedKeyResolver", ...
{ "body": "public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException {\n\n SAMLMessageContext context = new SAMLMessageContext();\n populateEntityId(context, request.getContextPath());\n populateContext(request, response, c...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_5
{ "fields": [ { "declarator": "consumer", "modifier": "", "original_string": "WebSSOProfileConsumer consumer;", "type": "WebSSOProfileConsumer", "var_name": "consumer" }, { "declarator": "provider", "modifier": "", "original_string": "SAMLAuthenticationProvi...
{ "body": "@Test\n public void testAuthenticate() throws Exception {\n SAMLMessageContext context = new SAMLMessageContext();\n\n SAMLAuthenticationToken token = new SAMLAuthenticationToken(context, messageStorage);\n SAMLMessageStorage store = token.getMessageStore();\n SAMLCredential ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(SAMLAuthenticationProvider.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(SAMLAuthenticationProvider.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\n if (!supports(authentication.getClass())) {\n throw new IllegalArgumentException(\"Only SAMLAuthenticationToken is supported, \" + authentication.getClass() + \" was attempted\");\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_17
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfileConsumerImpl profile...
{ "body": "@Test(expected = InsufficientAuthenticationException.class)\n public void testAuthnExactComparison_none() throws Exception {\n RequestedAuthnContext requestedAuthnContext = helper.getRequestedAuthnContext(AuthnContextComparisonTypeEnumeration.EXACT, Arrays.asList(\"test\", \"test2\"));\n A...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class)", "modifier": "private final static", "original_string": "private final static Logger log = LoggerFactory.getLogger(WebSSOProfileConsumerImpl.class);", "type": "Logger", "var_name": "log" ...
{ "body": "protected void verifyAuthnContext(RequestedAuthnContext requestedAuthnContext, AuthnContext receivedContext, SAMLMessageContext context) throws InsufficientAuthenticationException {\n\n if (requestedAuthnContext != null && AuthnContextComparisonTypeEnumeration.EXACT.equals(requestedAuthnContext.getC...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_56
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "keyManager", "modifier": "private", "original_string": "private ...
{ "body": "@Test\n public void testGetCertificate() {\n assertNotNull(keyManager.getCertificate(\"apollo\"));\n }", "class_method_signature": "JKSKeyManagerTest.testGetCertificate()", "constructor": false, "full_signature": "@Test public void testGetCertificate()", "identifier": "testGetCertifica...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(JKSKeyManager.class)", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(JKSKeyManager.class);", "type": "Logger", "var_name": "log" }, { "declarator": "creden...
{ "body": "public X509Certificate getCertificate(String alias) {\n if (alias == null || alias.length() == 0) {\n return null;\n }\n try {\n return (X509Certificate) keyStore.getCertificate(alias);\n } catch (Exception e) {\n log.error(\"Error loading certif...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_9
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "entryPoint", "modifier": "", "original_string": "SAMLEntryPoint entryPoint;", ...
{ "body": "@Test\n public void testProcessFilterDefault() {\n\n expect(request.getRequestURI()).andReturn(\"/web/saml/login\");\n expect(request.getRequestURI()).andReturn(\"/saml/login\");\n expect(request.getRequestURI()).andReturn(\"/login\");\n expect(request.getRequestURI()).andRet...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(SAMLEntryPoint.class)", "modifier": "protected final static", "original_string": "protected final static Logger logger = LoggerFactory.getLogger(SAMLEntryPoint.class);", "type": "Logger", "var_name": "logger" }, ...
{ "body": "protected boolean processFilter(HttpServletRequest request) {\n return SAMLUtil.processFilter(filterProcessesUrl, request);\n }", "class_method_signature": "SAMLEntryPoint.processFilter(HttpServletRequest request)", "constructor": false, "full_signature": "protected boolean processFilter(Ht...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_21
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "profile", "modifier": "", "original_string": "WebSSOProfile profile;", "t...
{ "body": "@Test\n public void testDefaultIDP() throws Exception {\n options.setIdp(null);\n storage.storeMessage((String) notNull(), (XMLObject) notNull());\n replyMock();\n profile.sendAuthenticationRequest(samlContext, options, storage);\n verifyMock();\n }", "class_metho...
{ "fields": [], "file": "spring-security-saml/saml2-core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileImpl.java", "identifier": "WebSSOProfileImpl", "interfaces": "implements WebSSOProfile", "methods": [ { "class_method_signature": "WebSSOProfileImpl.WebSSOProfileImpl()", ...
{ "body": "public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options, SAMLMessageStorage messageStorage) throws SAMLException, MetadataProviderException, MessageEncodingException {\n\n // Verify we deal with a local SP\n if (!SPSSODescriptor.DEFAULT_ELEMENT_NAME.equa...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_60
{ "fields": [ { "declarator": "context", "modifier": "", "original_string": "ApplicationContext context;", "type": "ApplicationContext", "var_name": "context" }, { "declarator": "processingFiler", "modifier": "", "original_string": "SAMLProcessingFilter proc...
{ "body": "@Test\n public void testCorrectPass() throws Exception {\n\n Authentication token = new UsernamePasswordAuthenticationToken(\"user\", \"pass\");\n AuthenticationManager manager = createMock(AuthenticationManager.class);\n processingFiler.setAuthenticationManager(manager);\n\n ...
{ "fields": [ { "declarator": "processor", "modifier": "protected", "original_string": "protected SAMLProcessor processor;", "type": "SAMLProcessor", "var_name": "processor" }, { "declarator": "contextProvider", "modifier": "protected", "original_string": "p...
{ "body": "public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException {\n\n try {\n\n SAMLMessageContext context = contextProvider.getLocalEntity(request, response);\n logger.debug(\"Attempting SAML2 authentication\...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
1867246_37
{ "fields": [ { "declarator": "request", "modifier": "", "original_string": "HttpServletRequest request;", "type": "HttpServletRequest", "var_name": "request" }, { "declarator": "response", "modifier": "", "original_string": "HttpServletResponse response;", ...
{ "body": "@Test\n public void testPopulateLocalEntityAliasDefaultRole() throws Exception {\n expect(request.getContextPath()).andReturn(\"/SSO/alias/myAlias/invalid\");\n replayMock();\n SAMLMessageContext context = contextProvider.getLocalEntity(request, response);\n assertEquals(\"te...
{ "fields": [ { "declarator": "encryptedKeyResolver = new ChainingEncryptedKeyResolver()", "modifier": "private static", "original_string": "private static ChainingEncryptedKeyResolver encryptedKeyResolver = new ChainingEncryptedKeyResolver();", "type": "ChainingEncryptedKeyResolver", ...
{ "body": "public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException {\n\n SAMLMessageContext context = new SAMLMessageContext();\n populateEntityId(context, request.getContextPath());\n populateContext(request, response, c...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1867246, "size": 1407, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/grantcermak/Spring-Security-Kerberos-with-ActiveDirectory" }
5194874_11
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void getGlobalProperty_shouldFindGpIfHl7queryIsLeftOffBeginning() throws Exception {\n\t\tString GPNAME = \"customgp\";\n\t\t\n\t\t// add a gp to the gp table (no hl7query prefix)\n\t\tContext.getAdministrationService().saveGlobalProperty(new GlobalProperty(GPNAME, \"acustomvalue\"));\n\t\t...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String evaluateTemplate(String templateName, Map<String, Object> bindings) {\n\t\t// what is this user thinking?\n\t\tif (templateName == null) {\n\t\t\tlog.info(\"Template name is null\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tHL7Template template = getHl7queryService().getHL7TemplateByName(templat...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_7
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void evaluateTemplate_shouldNotFailWithNotFoundTemplate() throws Exception {\n\t\tHL7TemplateFunctions functions = new HL7TemplateFunctions();\n\t\t\n\t\tAssert.assertEquals(\"\", functions.evaluateTemplate(\"anonexistanttemplate\", null));\n\t}", "class_method_signature": "HL7TemplateFun...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String evaluateTemplate(String templateName, Map<String, Object> bindings) {\n\t\t// what is this user thinking?\n\t\tif (templateName == null) {\n\t\t\tlog.info(\"Template name is null\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tHL7Template template = getHl7queryService().getHL7TemplateByName(templat...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_6
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void evaluateTemplate_shouldPassThroughToServiceLayerEvaluateMethod() throws Exception {\n\t\t// add a simple template to our db\n\t\tHL7Template t = new HL7Template();\n\t\tt.setName(\"simple\");\n\t\tt.setLanguage(HL7QueryService.LANGUAGE_GROOVY);\n\t\tt.setTemplate(\"The value of locale....
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String evaluateTemplate(String templateName, Map<String, Object> bindings) {\n\t\t// what is this user thinking?\n\t\tif (templateName == null) {\n\t\t\tlog.info(\"Template name is null\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tHL7Template template = getHl7queryService().getHL7TemplateByName(templat...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_10
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void getGlobalProperty_shouldReturnGpIfGpExists() throws Exception {\n\t\tString GPNAME = \"customgp\";\n\t\t\n\t\t// add a gp to the gp table (no hl7query prefix)\n\t\tContext.getAdministrationService().saveGlobalProperty(new GlobalProperty(GPNAME, \"acustomvalue\"));\n\t\t// add a simple ...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String evaluateTemplate(String templateName, Map<String, Object> bindings) {\n\t\t// what is this user thinking?\n\t\tif (templateName == null) {\n\t\t\tlog.info(\"Template name is null\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tHL7Template template = getHl7queryService().getHL7TemplateByName(templat...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_17
{ "fields": [ { "declarator": "service", "modifier": "", "original_string": "HL7QueryServiceImpl service;", "type": "HL7QueryServiceImpl", "var_name": "service" } ], "file": "api/src/test/java/org/openmrs/module/hl7query/api/impl/HL7QueryServiceImplTest.java", "identifier":...
{ "body": "@Test(expected = APIException.class)\n\tpublic void evaluateTemplate_shouldFailToEvaluateATemplateOfAnUnknownLanguage() throws Exception {\n\t\tHL7Template t = new HL7Template();\n\t\tt.setLanguage(\"C++\");\n\t\tt.setTemplate(\"Easy as 1, 2, 3\");\n\t\t\n\t\tservice.evaluateTemplate(t, null);\n\t}", "cl...
{ "fields": [ { "declarator": "log = LogFactory.getLog(this.getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(this.getClass());", "type": "Log", "var_name": "log" }, { "declarator": "dao", "modifier": "pri...
{ "body": "@Override\n\tpublic String evaluateTemplate(HL7Template template, Map<String, Object> bindings) {\n\t\tPreparedTemplate prepared = templateCache.get(template.getName());\n\t\tif (prepared == null) {\n\t\t\tTemplateFactory<?> factory = templateFactories.get(template.getLanguage());\n\t\t\tif (factory == nul...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_1
{ "fields": [ { "declarator": "ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\"", "modifier": "private static final", "original_string": "private static final String ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\";", "type": "String", "var_name": "ENCOUNTER_1_U...
{ "body": "@Test\n\t@Verifies(value = \"should return the expected hl7 in the format that matches the accept header value\", method = \"getEncounters(String,String,String,Date,Date,HttpServletRequest)\")\n\tpublic void getEncounters_shouldReturnTheExpectedHl7InTheFormatThatMatchesTheAcceptHeaderValue() throws Excepti...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" } ], "file": "omod/src/main/java/org/openmrs/module/hl7query/web...
{ "body": "@RequestMapping(method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Object getEncounters(@RequestParam(value = \"patientId\", required = false) String patientId,\n\t @RequestParam(value = \"idTypeUuid\", required = false) String idTypeUuid,\n\t @Requ...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_20
{ "fields": [ { "declarator": "factory", "modifier": "", "original_string": "GroovyTemplateFactory factory;", "type": "GroovyTemplateFactory", "var_name": "factory" } ], "file": "api/src/test/java/org/openmrs/module/hl7query/api/impl/GroovyTemplateFactoryTest.java", "identi...
{ "body": "@Test(expected=HL7TemplateException.class)\n\tpublic void testFailureIfTemplateRefersToMissingProperties() throws Exception {\n\t\tMap<String, Object> bindings = new HashMap<String, Object>();\n\t\tbindings.put(\"list\", Arrays.asList(\"1\", \"2\", \"3\"));\n\t\tfactory.prepareTemplate(\"Easy as ${ wrongNa...
{ "fields": [ { "declarator": "templateEngine", "modifier": "", "original_string": "SimpleTemplateEngine templateEngine;", "type": "SimpleTemplateEngine", "var_name": "templateEngine" } ], "file": "api/src/main/java/org/openmrs/module/hl7query/api/impl/GroovyTemplateFactory.j...
{ "body": "@Override\n public PreparedGroovyTemplate prepareTemplate(String templateText) throws HL7TemplateException {\n \ttry {\n \t\treturn new PreparedGroovyTemplate(templateEngine.createTemplate(templateText));\n \t}\n \tcatch (Exception ex) {\n \t\tthrow new HL7TemplateException(ex);\n \t}\...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_0
{ "fields": [ { "declarator": "ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\"", "modifier": "private static final", "original_string": "private static final String ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\";", "type": "String", "var_name": "ENCOUNTER_1_U...
{ "body": "@Test\n\t@Verifies(value = \"should return the expected hl7 output as xml if the xml header exists\", method = \"getEncounters(String,String,String,Date,Date,HttpServletRequest)\")\n\tpublic void getEncounters_shouldReturnTheExpectedHl7OutputAsXmlIfTheXmlHeaderExists() throws Exception {\n\t\t//TODO Add th...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" } ], "file": "omod/src/main/java/org/openmrs/module/hl7query/web...
{ "body": "@RequestMapping(method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Object getEncounters(@RequestParam(value = \"patientId\", required = false) String patientId,\n\t @RequestParam(value = \"idTypeUuid\", required = false) String idTypeUuid,\n\t @Requ...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_16
{ "fields": [ { "declarator": "service", "modifier": "", "original_string": "HL7QueryServiceImpl service;", "type": "HL7QueryServiceImpl", "var_name": "service" } ], "file": "api/src/test/java/org/openmrs/module/hl7query/api/impl/HL7QueryServiceImplTest.java", "identifier":...
{ "body": "@Test(expected = HL7TemplateException.class)\n\tpublic void evaluateTemplate_shouldFailToEvaluateAGroovyTemplateAgainstBadInput() throws Exception {\n\t\tHL7Template t = new HL7Template();\n\t\tt.setLanguage(HL7QueryService.LANGUAGE_GROOVY);\n\t\tt.setTemplate(\"Easy as ${ list.join(', ') }\");\n\t\t\n\t\t...
{ "fields": [ { "declarator": "log = LogFactory.getLog(this.getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(this.getClass());", "type": "Log", "var_name": "log" }, { "declarator": "dao", "modifier": "pri...
{ "body": "@Override\n\tpublic String evaluateTemplate(HL7Template template, Map<String, Object> bindings) {\n\t\tPreparedTemplate prepared = templateCache.get(template.getName());\n\t\tif (prepared == null) {\n\t\t\tTemplateFactory<?> factory = templateFactories.get(template.getLanguage());\n\t\t\tif (factory == nul...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_3
{ "fields": [ { "declarator": "ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\"", "modifier": "private static final", "original_string": "private static final String ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\";", "type": "String", "var_name": "ENCOUNTER_1_U...
{ "body": "@Test\n\t@Verifies(value = \"should return the patient encounters matching specified start and end encounter dates\", method = \"getEncounters(String,String,String,Date,Date,HttpServletRequest)\")\n\tpublic void getEncounters_shouldReturnThePatientEncountersMatchingSpecifiedStartAndEndEncounterDates() thro...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" } ], "file": "omod/src/main/java/org/openmrs/module/hl7query/web...
{ "body": "@RequestMapping(method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Object getEncounters(@RequestParam(value = \"patientId\", required = false) String patientId,\n\t @RequestParam(value = \"idTypeUuid\", required = false) String idTypeUuid,\n\t @Requ...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_15
{ "fields": [ { "declarator": "service", "modifier": "", "original_string": "HL7QueryServiceImpl service;", "type": "HL7QueryServiceImpl", "var_name": "service" } ], "file": "api/src/test/java/org/openmrs/module/hl7query/api/impl/HL7QueryServiceImplTest.java", "identifier":...
{ "body": "@Test\n\tpublic void evaluateTemplate_shouldEvaluateAGroovyTemplate() throws Exception {\n\t\tHL7Template t = new HL7Template();\n\t\tt.setLanguage(HL7QueryService.LANGUAGE_GROOVY);\n\t\tt.setTemplate(\"Easy as ${ list.join(', ') }\");\n\t\t\n\t\tMap<String, Object> bindings = new HashMap<String, Object>()...
{ "fields": [ { "declarator": "log = LogFactory.getLog(this.getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(this.getClass());", "type": "Log", "var_name": "log" }, { "declarator": "dao", "modifier": "pri...
{ "body": "@Override\n\tpublic String evaluateTemplate(HL7Template template, Map<String, Object> bindings) {\n\t\tPreparedTemplate prepared = templateCache.get(template.getName());\n\t\tif (prepared == null) {\n\t\t\tTemplateFactory<?> factory = templateFactories.get(template.getLanguage());\n\t\t\tif (factory == nul...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_19
{ "fields": [ { "declarator": "factory", "modifier": "", "original_string": "GroovyTemplateFactory factory;", "type": "GroovyTemplateFactory", "var_name": "factory" } ], "file": "api/src/test/java/org/openmrs/module/hl7query/api/impl/GroovyTemplateFactoryTest.java", "identi...
{ "body": "@Test\n\tpublic void testEvaluatingTemplateWithBindings() throws Exception {\n\t\tMap<String, Object> bindings = new HashMap<String, Object>();\n\t\tbindings.put(\"list\", Arrays.asList(\"1\", \"2\", \"3\"));\n\t\tString evaluated = factory.prepareTemplate(\"Easy as ${ list.join(', ') }\").evaluate(binding...
{ "fields": [ { "declarator": "templateEngine", "modifier": "", "original_string": "SimpleTemplateEngine templateEngine;", "type": "SimpleTemplateEngine", "var_name": "templateEngine" } ], "file": "api/src/main/java/org/openmrs/module/hl7query/api/impl/GroovyTemplateFactory.j...
{ "body": "@Override\n public PreparedGroovyTemplate prepareTemplate(String templateText) throws HL7TemplateException {\n \ttry {\n \t\treturn new PreparedGroovyTemplate(templateEngine.createTemplate(templateText));\n \t}\n \tcatch (Exception ex) {\n \t\tthrow new HL7TemplateException(ex);\n \t}\...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_18
{ "fields": [ { "declarator": "factory", "modifier": "", "original_string": "GroovyTemplateFactory factory;", "type": "GroovyTemplateFactory", "var_name": "factory" } ], "file": "api/src/test/java/org/openmrs/module/hl7query/api/impl/GroovyTemplateFactoryTest.java", "identi...
{ "body": "@Test\n\tpublic void testEvaluatingTemplateWithNullBindings() throws Exception {\n\t\tString evaluated = factory.prepareTemplate(\"Easy as ${ [ 1, 2, 3 ].join(', ') }\").evaluate(null);\n\t\tAssert.assertEquals(\"Easy as 1, 2, 3\", evaluated);\n\t}", "class_method_signature": "GroovyTemplateFactoryTest.t...
{ "fields": [ { "declarator": "templateEngine", "modifier": "", "original_string": "SimpleTemplateEngine templateEngine;", "type": "SimpleTemplateEngine", "var_name": "templateEngine" } ], "file": "api/src/main/java/org/openmrs/module/hl7query/api/impl/GroovyTemplateFactory.j...
{ "body": "@Override\n public PreparedGroovyTemplate prepareTemplate(String templateText) throws HL7TemplateException {\n \ttry {\n \t\treturn new PreparedGroovyTemplate(templateEngine.createTemplate(templateText));\n \t}\n \tcatch (Exception ex) {\n \t\tthrow new HL7TemplateException(ex);\n \t}\...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_14
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void formatDate_shouldUseInputDateFormatToFormatDate() throws Exception {\n\t\t\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate testDate = new Date();\n\t\tString dateString = dateFormat.format(testDate);\n\t\t\n\t\tHL7TemplateFunctions functions = new HL7Te...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String formatDate(Date date, String format){\n\t\tString dateString;\n\t\tSimpleDateFormat dateFormat = null;\n\t\tif(date == null)\n\t\t\tdate = new Date();\n\t\t\n\t\tif(format != null){\n\t\t\tdateFormat = new SimpleDateFormat(format);\n\t\t}else{\n\t\t\tdateFormat = new SimpleDateFormat(\"yyyyMM...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_2
{ "fields": [ { "declarator": "ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\"", "modifier": "private static final", "original_string": "private static final String ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\";", "type": "String", "var_name": "ENCOUNTER_1_U...
{ "body": "@Test\n\t@Verifies(value = \"should return the patient encounters given the patient identifier and id type\", method = \"getEncounters(String,String,String,Date,Date,HttpServletRequest)\")\n\tpublic void getEncounters_shouldReturnThePatientEncountersGivenThePatientIdentifierAndIdType() throws Exception {\n...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" } ], "file": "omod/src/main/java/org/openmrs/module/hl7query/web...
{ "body": "@RequestMapping(method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Object getEncounters(@RequestParam(value = \"patientId\", required = false) String patientId,\n\t @RequestParam(value = \"idTypeUuid\", required = false) String idTypeUuid,\n\t @Requ...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_9
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void getGlobalProperty_shouldPreprendHl7queryIfGpDoesntExist() throws Exception {\n\t\tString GPNAME = \"customgp\";\n\t\t\n\t\t// add a gp to the gp table WITH \"hl7query\" in front of it!\n\t\tContext.getAdministrationService().saveGlobalProperty(new GlobalProperty(\"hl7query.\" + GPNAME,...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String evaluateTemplate(String templateName, Map<String, Object> bindings) {\n\t\t// what is this user thinking?\n\t\tif (templateName == null) {\n\t\t\tlog.info(\"Template name is null\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tHL7Template template = getHl7queryService().getHL7TemplateByName(templat...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_5
{ "fields": [ { "declarator": "ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\"", "modifier": "private static final", "original_string": "private static final String ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\";", "type": "String", "var_name": "ENCOUNTER_1_U...
{ "body": "@Test\n\t@Verifies(value = \"should return appopriately formed error message if encounter uuid is not found\", method = \"getEncounters(String,String,String,Date,Date,HttpServletRequest)\")\n\tpublic void getEncounters_shouldReturnAppopriatelyFormedErrorMessageIfEncounterUuidIsNotFound() throws Exception {...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" } ], "file": "omod/src/main/java/org/openmrs/module/hl7query/web...
{ "body": "@RequestMapping(method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Object getEncounters(@RequestParam(value = \"patientId\", required = false) String patientId,\n\t @RequestParam(value = \"idTypeUuid\", required = false) String idTypeUuid,\n\t @Requ...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_13
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void formatDate_shouldUseDefaultDateFormatIfInputDateFormatIsNull() throws Exception {\n\t\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\tDate testDate = new Date();\n\t\tString dateString = dateFormat.format(testDate);\n\t\t\n\t\tHL7TemplateFunctions func...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String formatDate(Date date, String format){\n\t\tString dateString;\n\t\tSimpleDateFormat dateFormat = null;\n\t\tif(date == null)\n\t\t\tdate = new Date();\n\t\t\n\t\tif(format != null){\n\t\t\tdateFormat = new SimpleDateFormat(format);\n\t\t}else{\n\t\t\tdateFormat = new SimpleDateFormat(\"yyyyMM...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_12
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void formatDate_shouldCreateNewDateIfInputDateIsNull() throws Exception {\n\t\t\n\t\tHL7TemplateFunctions functions = new HL7TemplateFunctions();\n\t\tAssert.assertNotNull(functions.formatDate(null, null));\n\t}", "class_method_signature": "HL7TemplateFunctionsTest.formatDate_shouldCreate...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String formatDate(Date date, String format){\n\t\tString dateString;\n\t\tSimpleDateFormat dateFormat = null;\n\t\tif(date == null)\n\t\t\tdate = new Date();\n\t\t\n\t\tif(format != null){\n\t\t\tdateFormat = new SimpleDateFormat(format);\n\t\t}else{\n\t\t\tdateFormat = new SimpleDateFormat(\"yyyyMM...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_4
{ "fields": [ { "declarator": "ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\"", "modifier": "private static final", "original_string": "private static final String ENCOUNTER_1_UUID = \"6519d653-393b-4118-9c83-a3715b82d4ac\";", "type": "String", "var_name": "ENCOUNTER_1_U...
{ "body": "@Test\n\t@Verifies(value = \"should return appopriately formed error message if patient id and encounter uuid are null\", method = \"getEncounters(String,String,String,Date,Date,HttpServletRequest)\")\n\tpublic void getEncounters_shouldReturnAppopriatelyFormedErrorMessageIfPatientIdAndEncounterUuidAreNull(...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "protected final", "original_string": "protected final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" } ], "file": "omod/src/main/java/org/openmrs/module/hl7query/web...
{ "body": "@RequestMapping(method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic Object getEncounters(@RequestParam(value = \"patientId\", required = false) String patientId,\n\t @RequestParam(value = \"idTypeUuid\", required = false) String idTypeUuid,\n\t @Requ...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
5194874_8
{ "fields": [], "file": "api/src/test/java/org/openmrs/module/hl7query/HL7TemplateFunctionsTest.java", "identifier": "HL7TemplateFunctionsTest", "interfaces": "", "superclass": "extends BaseModuleContextSensitiveTest" }
{ "body": "@Test\n\tpublic void getGlobalProperty_shouldReturnEmptyStringIfGpDoesntExist() throws Exception {\n\t\t// add a simple template to our db\n\t\tHL7Template t = new HL7Template();\n\t\tt.setName(\"nonexistantgptemplate\");\n\t\tt.setLanguage(HL7QueryService.LANGUAGE_GROOVY);\n\t\tt.setTemplate(\"-${ func.ge...
{ "fields": [ { "declarator": "log = LogFactory.getLog(HL7TemplateFunctions.class)", "modifier": "public static", "original_string": "public static Log log = LogFactory.getLog(HL7TemplateFunctions.class);", "type": "Log", "var_name": "log" }, { "declarator": "hl7querySe...
{ "body": "public String evaluateTemplate(String templateName, Map<String, Object> bindings) {\n\t\t// what is this user thinking?\n\t\tif (templateName == null) {\n\t\t\tlog.info(\"Template name is null\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tHL7Template template = getHl7queryService().getHL7TemplateByName(templat...
{ "created": null, "fork": null, "fork_count": 39, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 5194874, "size": 454, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/openmrs/openmrs-module-hl7query" }
8204840_12
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetHeight() throws Exception {\n Content content = new TestContent();\n assertEquals(0, content.getHeight(), 0.01);\n\n content.setMinHeight(20);\n assertEquals(20, content.getHeight(), 0.01);\n }", "class_method_signature": "ContentTest.testGetHe...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final double getHeight()\n {\n return Math.max(height, minHeight);\n }", "class_method_signature": "Content.getHeight()", "constructor": false, "full_signature": "public final double getHeight()", "identifier": "getHeight", "invocations": [ "max" ], "modifiers": "publi...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_2
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/LayoutTest.java", "identifier": "LayoutTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRemove() throws Exception {\n\n }", "class_method_signature": "LayoutTest.testRemove()", "constructor": false, "full_signature": "@Test public void testRemove()", "identifier": "testRemove", "invocations": [], "modifiers": "@Test public", "parameters": "()", "r...
{ "fields": [ { "declarator": "separator = Separator.EMPTY", "modifier": "private", "original_string": "private Separator separator = Separator.EMPTY;", "type": "Separator", "var_name": "separator" }, { "declarator": "contents = new ArrayList<Content>()", "modifie...
{ "body": "public void remove(Content content)\n {\n if(null == content)\n {\n throw new NullPointerException(\"Content can't be null\");\n }\n content.removeParent(this);\n contents.remove(content);\n refresh();\n }", "class_method_signature": "Layout.remo...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_3
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/LayoutTest.java", "identifier": "LayoutTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetSeparator() throws Exception {\n\n }", "class_method_signature": "LayoutTest.testGetSeparator()", "constructor": false, "full_signature": "@Test public void testGetSeparator()", "identifier": "testGetSeparator", "invocations": [], "modifiers": "@Test public", ...
{ "fields": [ { "declarator": "separator = Separator.EMPTY", "modifier": "private", "original_string": "private Separator separator = Separator.EMPTY;", "type": "Separator", "var_name": "separator" }, { "declarator": "contents = new ArrayList<Content>()", "modifie...
{ "body": "public final Separator getSeparator()\n {\n return separator;\n }", "class_method_signature": "Layout.getSeparator()", "constructor": false, "full_signature": "public final Separator getSeparator()", "identifier": "getSeparator", "invocations": [], "modifiers": "public final", "p...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_13
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetMinWidth() throws Exception {\n Content content = new TestContent();\n content.setMinWidth(500);\n assertEquals(500, content.getWidth(), 0.01);\n }", "class_method_signature": "ContentTest.testSetMinWidth()", "constructor": false, "full_signature"...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public void setMinWidth(double minWidth)\n {\n if(0 > minWidth)\n {\n throw new IllegalArgumentException(\"min width can only be a positive number\");\n }\n this.minWidth = minWidth;\n refreshUp();\n }", "class_method_signature": "Content.setMinWidth(do...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_8
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetBounds() throws Exception {\n Content content = new TestContent();\n\n content.setMinWidth(50);\n content.setMinHeight(20);\n\n assertEquals(0, content.getBounds().getX(), 0.01);\n assertEquals(0, content.getBounds().getY(), 0.01);\n a...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final Rectangle2D getBounds()\n {\n return new Rectangle2D.Double(getX(),getY(),getWidth(),getHeight());\n }", "class_method_signature": "Content.getBounds()", "constructor": false, "full_signature": "public final Rectangle2D getBounds()", "identifier": "getBounds", "invocatio...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_14
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetMinHeight() throws Exception {\n Content content = new TestContent();\n content.setMinHeight(200);\n assertEquals(200, content.getHeight(), 0.01);\n }", "class_method_signature": "ContentTest.testSetMinHeight()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public void setMinHeight(double minHeight){\n if(0 > minHeight)\n {\n throw new IllegalArgumentException(\"min height can only be a positive number\");\n }\n this.minHeight = minHeight;\n refreshUp();\n }", "class_method_signature": "Content.setMinHeight(d...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_4
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/LayoutTest.java", "identifier": "LayoutTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetSeparator() throws Exception {\n\n }", "class_method_signature": "LayoutTest.testSetSeparator()", "constructor": false, "full_signature": "@Test public void testSetSeparator()", "identifier": "testSetSeparator", "invocations": [], "modifiers": "@Test public", ...
{ "fields": [ { "declarator": "separator = Separator.EMPTY", "modifier": "private", "original_string": "private Separator separator = Separator.EMPTY;", "type": "Separator", "var_name": "separator" }, { "declarator": "contents = new ArrayList<Content>()", "modifie...
{ "body": "public final void setSeparator(Separator separator) {\n if(null==separator)\n {\n separator = Separator.EMPTY;\n }\n this.separator = separator;\n }", "class_method_signature": "Layout.setSeparator(Separator separator)", "constructor": false, "full_signature"...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_5
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/LayoutTest.java", "identifier": "LayoutTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetLocation() throws Exception {\n\n }", "class_method_signature": "LayoutTest.testGetLocation()", "constructor": false, "full_signature": "@Test public void testGetLocation()", "identifier": "testGetLocation", "invocations": [], "modifiers": "@Test public", "par...
{ "fields": [ { "declarator": "separator = Separator.EMPTY", "modifier": "private", "original_string": "private Separator separator = Separator.EMPTY;", "type": "Separator", "var_name": "separator" }, { "declarator": "contents = new ArrayList<Content>()", "modifie...
{ "body": "public Point2D getLocation(Content content)\n {\n int index = contents.indexOf(content);\n Point2D offset = new Point2D.Double(0,0);\n\n for(int i = 0; i < index; ++i)\n {\n offset = getNextOffset(offset, contents.get(i));\n }\n return offset;\n }"...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_15
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRefreshParent() throws Exception {\n TestingRefreshContent testingRefreshContent = new TestingRefreshContent();\n assertEquals(0, testingRefreshContent.refreshUpCount);\n assertEquals(0, testingRefreshContent.refreshDownCount);\n\n Content content = ne...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final void refresh()\n {\n refreshUp();\n refreshDown();\n }", "class_method_signature": "Content.refresh()", "constructor": false, "full_signature": "public final void refresh()", "identifier": "refresh", "invocations": [ "refreshUp", "refreshDown" ], "modi...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_9
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetX() throws Exception {\n Content content = new TestContent();\n assertEquals(0, content.getX(), 0.01);\n }", "class_method_signature": "ContentTest.testGetX()", "constructor": false, "full_signature": "@Test public void testGetX()", "identifier": "test...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final double getX()\n {\n return 0;\n }", "class_method_signature": "Content.getX()", "constructor": false, "full_signature": "public final double getX()", "identifier": "getX", "invocations": [], "modifiers": "public final", "parameters": "()", "return": "double", "si...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_6
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/TextContentTest.java", "identifier": "TextContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testOnChange() throws Exception\n {\n SingleLineText singleLineText = new SingleLineText();\n TextContent textContent = new TextContent(singleLineText);\n TestingRefreshContent testingRefreshContent = new TestingRefreshContent();\n testingRefreshContent...
{ "fields": [ { "declarator": "text", "modifier": "private", "original_string": "private LineText text;", "type": "LineText", "var_name": "text" } ], "file": "violet-framework/src/main/java/com/horstmann/violet/framework/graphics/content/TextContent.java", "identifier": "Te...
{ "body": "@Override\n public void onChange()\n {\n refresh();\n }", "class_method_signature": "TextContent.onChange()", "constructor": false, "full_signature": "@Override public void onChange()", "identifier": "onChange", "invocations": [ "refresh" ], "modifiers": "@Override public"...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_16
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRefreshChildren() throws Exception {\n TestingRefreshContent testingRefreshContent = new TestingRefreshContent();\n assertEquals(0, testingRefreshContent.refreshUpCount);\n assertEquals(0, testingRefreshContent.refreshDownCount);\n\n Content content = ...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final void refresh()\n {\n refreshUp();\n refreshDown();\n }", "class_method_signature": "Content.refresh()", "constructor": false, "full_signature": "public final void refresh()", "identifier": "refresh", "invocations": [ "refreshUp", "refreshDown" ], "modi...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_7
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContains() throws Exception {\n Content content = new TestContent();\n\n content.setMinWidth(50);\n content.setMinHeight(20);\n\n assertTrue(content.contains(new Point(0,0)));\n assertTrue(content.contains(new Point(49,19)));\n assertTrue...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public boolean contains(Point2D point)\n {\n return getBounds().contains(point);\n }", "class_method_signature": "Content.contains(Point2D point)", "constructor": false, "full_signature": "public boolean contains(Point2D point)", "identifier": "contains", "invocations": [ "contai...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_0
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/EmptyContentTest.java", "identifier": "EmptyContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDraw() throws Exception {\n\n }", "class_method_signature": "EmptyContentTest.testDraw()", "constructor": false, "full_signature": "@Test public void testDraw()", "identifier": "testDraw", "invocations": [], "modifiers": "@Test public", "parameters": "()", "ret...
{ "fields": [], "file": "violet-framework/src/main/java/com/horstmann/violet/framework/graphics/content/EmptyContent.java", "identifier": "EmptyContent", "interfaces": "", "methods": [ { "class_method_signature": "EmptyContent.draw(Graphics2D graphics)", "constructor": false, "full_signa...
{ "body": "@Override\n public void draw(Graphics2D graphics)\n {}", "class_method_signature": "EmptyContent.draw(Graphics2D graphics)", "constructor": false, "full_signature": "@Override public void draw(Graphics2D graphics)", "identifier": "draw", "invocations": [], "modifiers": "@Override public",...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_10
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetY() throws Exception {\n Content content = new TestContent();\n assertEquals(0, content.getY(), 0.01);\n }", "class_method_signature": "ContentTest.testGetY()", "constructor": false, "full_signature": "@Test public void testGetY()", "identifier": "test...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final double getY()\n {\n return 0;\n }", "class_method_signature": "Content.getY()", "constructor": false, "full_signature": "public final double getY()", "identifier": "getY", "invocations": [], "modifiers": "public final", "parameters": "()", "return": "double", "si...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_11
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/ContentTest.java", "identifier": "ContentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetWidth() throws Exception {\n Content content = new TestContent();\n assertEquals(0, content.getWidth(), 0.01);\n\n content.setMinWidth(50);\n assertEquals(50, content.getWidth(), 0.01);\n }", "class_method_signature": "ContentTest.testGetWidth(...
{ "fields": [ { "declarator": "parents = new ArrayList<Content>()", "modifier": "private", "original_string": "private ArrayList<Content> parents = new ArrayList<Content>();", "type": "ArrayList<Content>", "var_name": "parents" }, { "declarator": "minWidth = 0", "...
{ "body": "public final double getWidth()\n {\n return Math.max(width, minWidth);\n }", "class_method_signature": "Content.getWidth()", "constructor": false, "full_signature": "public final double getWidth()", "identifier": "getWidth", "invocations": [ "max" ], "modifiers": "public fina...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
8204840_1
{ "fields": [], "file": "violet-framework/src/test/java/com/horstmann/violet/framework/graphics/content/LayoutTest.java", "identifier": "LayoutTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAdd() throws Exception {\n\n }", "class_method_signature": "LayoutTest.testAdd()", "constructor": false, "full_signature": "@Test public void testAdd()", "identifier": "testAdd", "invocations": [], "modifiers": "@Test public", "parameters": "()", "return": "voi...
{ "fields": [ { "declarator": "separator = Separator.EMPTY", "modifier": "private", "original_string": "private Separator separator = Separator.EMPTY;", "type": "Separator", "var_name": "separator" }, { "declarator": "contents = new ArrayList<Content>()", "modifie...
{ "body": "public void add(Content content)\n {\n if(null == content)\n {\n throw new NullPointerException(\"Content can't be null\");\n }\n content.addParent(this);\n contents.add(content);\n refresh();\n }", "class_method_signature": "Layout.add(Content c...
{ "created": null, "fork": null, "fork_count": 96, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8204840, "size": 43375, "stargazer_count": 125, "stars": null, "updates": null, "url": "https://github.com/violetumleditor/violetumleditor" }
47536480_48
{ "fields": [ { "declarator": "CONSOLE_INI = \"console.ini\"", "modifier": "public static final", "original_string": "public static final String CONSOLE_INI = \"console.ini\";", "type": "String", "var_name": "CONSOLE_INI" } ], "file": "odps-console-resource/src/test/java/com/...
{ "body": "@Test\n public void testDescFunc() throws ODPSConsoleException, OdpsException {\n ExecutionContext init = ExecutionContext.init();\n AbstractCommand command = DescribeFunctionCommand.parse(\"desc function console_lower\", init);\n command.execute();\n }", "class_method_signature": "DescribeFun...
{ "fields": [ { "declarator": "functionName", "modifier": "private final", "original_string": "private final String functionName;", "type": "String", "var_name": "functionName" }, { "declarator": "HELP_TAGS = new String[]{\"describe\", \"desc\", \"function\"}", "m...
{ "body": "public static AbstractCommand parse(String cmd, ExecutionContext ctx) throws ODPSConsoleException {\n Matcher m = PATTERN.matcher(cmd);\n boolean match = m.matches();\n\n if (!match) {\n return null;\n }\n\n if (m.groupCount() < 3) {\n throw new ODPSConsoleException(ODPSConsoleCons...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_7
{ "fields": [], "file": "odps-console-basic/src/test/java/com/aliyun/openservices/odps/console/commands/ExecuteScriptCommandTest.java", "identifier": "ExecuteScriptCommandTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = ODPSConsoleException.class)\n public void testFileNotExsit() throws ODPSConsoleException, OdpsException {\n ExecutionContext context = ExecutionContext.init();\n ExecuteScriptCommand command = null;\n\n List<String> options = new ArrayList<String>();\n options.add(\"-s\");\n\n...
{ "fields": [ { "declarator": "filename", "modifier": "private", "original_string": "private String filename;", "type": "String", "var_name": "filename" } ], "file": "odps-console-basic/src/main/java/com/aliyun/openservices/odps/console/commands/ExecuteScriptCommand.java", ...
{ "body": "public static ExecuteScriptCommand parse(List<String> optionList, ExecutionContext sessionContext)\n throws ODPSConsoleException {\n // 处理script的执行\n // parse -s参数\n String option = \"-s\";\n\n if (optionList.contains(option)) {\n if (optionList.indexOf(option) + 1 < optionList.size()...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_25
{ "fields": [ { "declarator": "positives = {\" SHOW PARTITIONS projectname.tablename\",\n \"\\r\\t\\nShoW\\t\\rPartitions\\n\\tprojectname.tablename\\r\\t\\n\",\n \" LS PARTITIONS projectname.tablename\",\n ...
{ "body": "@Test\n public void testPositive() throws ODPSConsoleException {\n ExecutionContext ctx = ExecutionContext.init();\n for (String cmd : positives) {\n assertNotNull(ShowPartitionsCommand.parse(cmd, ctx));\n }\n }", "class_method_signature": "ShowPartitionsCommandTest.testPositive()", "co...
{ "fields": [ { "declarator": "HELP_TAGS = new String[]{\"show\", \"list\", \"ls\", \"partition\", \"partitions\"}", "modifier": "public static final", "original_string": "public static final String[] HELP_TAGS = new String[]{\"show\", \"list\", \"ls\", \"partition\", \"partitions\"};", "t...
{ "body": "public static ShowPartitionsCommand parse(String cmd, ExecutionContext cxt)\n throws ODPSConsoleException {\n if (cmd == null || cxt == null) {\n return null;\n }\n\n ShowPartitionsCommand r = null;\n\n Matcher m = PATTERN.matcher(cmd);\n Matcher pubMatcher = PUBLIC_PATTERN.matcher...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_100
{ "fields": [ { "declarator": "expectEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectEx" } ], "file": "odps-console-xflo...
{ "body": "@Test\n public void testCreateOnLineModelParameterError3() throws ODPSConsoleException, OdpsException {\n ExecutionContext context = ExecutionContext.init();\n String cmd = \"create onlinemodel -p prj1 model1 \" +\n \"-target target1 \" +\n \"-id id1 \" +\n \"-libNam...
{ "fields": [ { "declarator": "HELP_TAGS = new String[]{\"create\", \"model\", \"onlinemodel\", \"online\"}", "modifier": "public static final", "original_string": "public static final String[] HELP_TAGS = new String[]{\"create\", \"model\", \"onlinemodel\", \"online\"};", "type": "String[...
{ "body": "public static CreateOnlineModelCommand parse(String cmd, ExecutionContext ctx)\n throws ODPSConsoleException {\n\n if (cmd == null || ctx == null) {\n return null;\n }\n\n OnlineModelInfo modelInfo = CreateOnlineModelCommand.buildOnlineModelInfo(cmd, PATTERN, ctx);\n if (modelInfo == ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_72
{ "fields": [ { "declarator": "expectEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectEx" } ], "file": "odps-console-xflo...
{ "body": "@Test\n public void testCreateOfflineModelWithProcessor() throws ODPSConsoleException, OdpsException {\n ExecutionContext context = ExecutionContext.init();\n String cmd = \"create offlinemodel t_offlinemodel \" +\n \"-modelPath oss://bucket/dir/?role_arn=xxx&host=yyy \" +\n \"...
{ "fields": [ { "declarator": "HELP_TAGS = new String[]{\"create\", \"offline\", \"model\", \"offlinemodel\"}", "modifier": "public static final", "original_string": "public static final String[] HELP_TAGS = new String[]{\"create\", \"offline\", \"model\", \"offlinemodel\"};", "type": "Str...
{ "body": "public static CreateOfflineModelCommand parse(String cmd, ExecutionContext ctx)\n throws ODPSConsoleException {\n\n if (cmd == null || ctx == null) {\n return null;\n }\n\n OfflineModelInfo modelInfo = CreateOfflineModelCommand.buildOfflineModelInfo(cmd, PATTERN, ctx);\n\n if (modelIn...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_64
{ "fields": [ { "declarator": "positives =\n {\"LIST FUNCTIONS\", \"list Functions\", \" list functions \\r\",\n \"ls \\n\\r\\t functions\", \"LS FUNCTIONS\", \"\\n\\r\\t List\\tfunctions \\n\\r\\t\",\n \"\\n\\r\\t ls\\tfunctions \\n\\r\\t\"}", "modifier": "private static", ...
{ "body": "@Test(expected = ODPSConsoleException.class)\n public void testLackParas() throws ODPSConsoleException {\n ExecutionContext context = ExecutionContext.init();\n\n for (String cmd : badPara) {\n ListFunctionsCommand.parse(cmd, context);\n }\n }", "class_method_signature": "ListFunctionsCom...
{ "fields": [ { "declarator": "HELP_TAGS =\n new String[]{\"list\", \"ls\", \"show\", \"function\", \"functions\"}", "modifier": "public static final", "original_string": "public static final String[]\n HELP_TAGS =\n new String[]{\"list\", \"ls\", \"show\", \"function\", \"functio...
{ "body": "public static ListFunctionsCommand parse(String commandString, ExecutionContext sessionContext)\n throws ODPSConsoleException {\n\n Matcher matcher = PATTERN.matcher(commandString);\n\n if (matcher.matches()) {\n String project = null;\n\n if (4 == matcher.groupCount() && matcher.group(...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_116
{ "fields": [ { "declarator": "originalCharset", "modifier": "static", "original_string": "static String originalCharset;", "type": "String", "var_name": "originalCharset" } ], "file": "odps-console-dship/src/test/java/com/aliyun/odps/ship/upload/BlockRecordReaderTest.java", ...
{ "body": "@Test\n public void testReadMultiBlocksWithBom() throws Exception {\n\n // file content\n // 123||ab测试c,,,234||bb你好b,,,33啊啊3||ccc,,,\n // first block read 2 lines\n {\n BlockInfo blockInfo = new BlockInfo(1L, new File(\"src/test/resources/file/reader/more_char_split_chinese_bom.txt\"), 0L...
{ "fields": [ { "declarator": "fieldDelimiter", "modifier": "private", "original_string": "private byte[] fieldDelimiter;", "type": "byte[]", "var_name": "fieldDelimiter" }, { "declarator": "recordDelimiter", "modifier": "private", "original_string": "privat...
{ "body": "public byte[][] readTextRecord() throws IOException {\n if (isLastLine) {\n return null;\n }\n currentLine = readLine();\n isLastLine = startPos + readBytes > blockInfo.getStartPos() + blockInfo.getLength();\n return splitLine(currentLine);\n }", "class_method_signature": "BlockRecor...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_33
{ "fields": [ { "declarator": "positives = {\"SHOW TABLES\", \"show tables\", \" show tables \\r\",\n \"show tables in project01_\",\n \"\\n\\r\\t SHow\\tTables in \\r project_01_sdf\\n\\r\\t\"}", "modifier": "private static"...
{ "body": "@Test\n public void testMatchNegative() {\n for (String cmd : negatives) {\n Assert.assertFalse(ShowTablesCommand.matchInternalCmd(cmd).matches());\n }\n }", "class_method_signature": "ShowTablesCommandTest.testMatchNegative()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [ { "declarator": "HELP_TAGS = new String[]{\"show\", \"list\", \"ls\", \"table\", \"tables\"}", "modifier": "public static final", "original_string": "public static final String[] HELP_TAGS = new String[]{\"show\", \"list\", \"ls\", \"table\", \"tables\"};", "type": "String[]"...
{ "body": "static Matcher matchInternalCmd(String cmd) {\n return (PATTERN.matcher(cmd));\n }", "class_method_signature": "ShowTablesCommand.matchInternalCmd(String cmd)", "constructor": false, "full_signature": "static Matcher matchInternalCmd(String cmd)", "identifier": "matchInternalCmd", "invocation...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_44
{ "fields": [ { "declarator": "positive =\n {\"top instance \", \"toP instance \", \"TOP INSTANCE \", \"top instance -d\", \"top instance -d 10\",\n \"top instance -limit 2\", \"top instance -all\", \"top instance -p tt\",\n \"top instance -status running\",\n \"top instance -d -all -...
{ "body": "@Test\n public void testSyncNegative() throws ODPSConsoleException, OdpsException {\n ExecutionContext ctx = ExecutionContext.init();\n\n for (String str : negative) {\n TopInstanceCommand test = TopInstanceCommand.parse(str, ctx);\n assertNull(test);\n }\n }", "class_method_signatur...
{ "fields": [ { "declarator": "HELP_TAGS = new String[]{\"top\", \"instance\"}", "modifier": "public static final", "original_string": "public static final String[] HELP_TAGS = new String[]{\"top\", \"instance\"};", "type": "String[]", "var_name": "HELP_TAGS" }, { "decl...
{ "body": "public static TopInstanceCommand parse(String commandString, ExecutionContext sessionContext)\n throws ODPSConsoleException {\n Matcher matcher = PATTERN.matcher(commandString);\n String projectName = null;\n Integer delay = null;\n Boolean onlyOwner = null;\n Integer number = null;\n ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }
47536480_13
{ "fields": [], "file": "odps-console-basic/src/test/java/com/aliyun/openservices/odps/console/utils/ODPSConsoleUtilsTest.java", "identifier": "ODPSConsoleUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getConfigTest() {\n File file = new File(ODPSConsoleUtils.getConfigFilePath());\n assertTrue(file.exists());\n }", "class_method_signature": "ODPSConsoleUtilsTest.getConfigTest()", "constructor": false, "full_signature": "@Test public void getConfigTest()", "identifier":...
{ "fields": [ { "declarator": "DATE_FORMAT = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault())", "modifier": "public static final", "original_string": "public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());", ...
{ "body": "public static String getConfigFilePath() {\n URL url = ODPSConsoleUtils.class.getClassLoader().getResource(\"odps_config.ini\");\n if (url == null) {\n return null;\n } else {\n return url.getFile();\n }\n }", "class_method_signature": "ODPSConsoleUtils.getConfigFilePath()", "co...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47536480, "size": 16942, "stargazer_count": 58, "stars": null, "updates": null, "url": "https://github.com/aliyun/aliyun-odps-console" }