test_class.file: server-core/src/test/java/io/onedev/server/util/UrlUtilsTest.java
test_class.identifier: UrlUtilsTest
test_case.body: @Test
  	public void testDescribe() {
  		assertEquals("File", UrlUtils.describe("file"));
  		assertEquals("File", UrlUtils.describe("dir/file.txt"));
  		assertEquals("File Name", UrlUtils.describe("dir/file-name.txt"));
  		assertEquals("File Name", UrlUtils.describe("dir/file_name.txt"));
  		assertEquals("File Name", UrlUtils.describe("dir.2/file_name.txt"));
  		assertEquals("Google", UrlUtils.describe("www.google.com"));
  		assertEquals("www.google.com", UrlUtils.describe("http://www.google.com"));
  		assertEquals("www.google.com", UrlUtils.describe("https://www.google.com"));
  	}
test_case.class_method_signature: UrlUtilsTest.testDescribe()
test_case.full_signature: @Test public void testDescribe()
test_case.identifier: testDescribe
test_case.invocations: assertEquals describe assertEquals describe assertEquals describe assertEquals describe assertEquals describe assertEquals describe assertEquals describe assertEquals describe
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDescribe()
focal_class.declarator: SCHEME_PATTERN = Pattern.compile("(mailto:|^\\w+\\:\\/\\/)")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern SCHEME_PATTERN = Pattern.compile("(mailto:|^\\w+\\:\\/\\/)");
focal_class.type: Pattern
focal_class.var_name: SCHEME_PATTERN
focal_class.file: server-core/src/main/java/io/onedev/server/util/UrlUtils.java
focal_class.identifier: UrlUtils
focal_class.class_method_signature: UrlUtils.isRelative(String url)
focal_class.full_signature: public static boolean isRelative(String url)
focal_class.identifier: isRelative
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: boolean
focal_class.signature: boolean isRelative(String url)
focal_class.class_method_signature: UrlUtils.trimHashAndQuery(String url)
focal_class.full_signature: public static String trimHashAndQuery(String url)
focal_class.identifier: trimHashAndQuery
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String trimHashAndQuery(String url)
focal_class.class_method_signature: UrlUtils.describe(String url)
focal_class.full_signature: public static String describe(String url)
focal_class.identifier: describe
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String describe(String url)
focal_class.class_method_signature: UrlUtils.encodePath(String url)
focal_class.full_signature: public static String encodePath(String url)
focal_class.identifier: encodePath
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String encodePath(String url)
focal_class.class_method_signature: UrlUtils.decodePath(String url)
focal_class.full_signature: public static String decodePath(String url)
focal_class.identifier: decodePath
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String decodePath(String url)
focal_class.class_method_signature: UrlUtils.encodeQuery(String query)
focal_class.full_signature: public static String encodeQuery(String query)
focal_class.identifier: encodeQuery
focal_class.modifiers: public static
focal_class.parameters: (String query)
focal_class.return: String
focal_class.signature: String encodeQuery(String query)
focal_class.class_method_signature: UrlUtils.decodeQuery(String query)
focal_class.full_signature: public static String decodeQuery(String query)
focal_class.identifier: decodeQuery
focal_class.modifiers: public static
focal_class.parameters: (String query)
focal_class.return: String
focal_class.signature: String decodeQuery(String query)
focal_method.body: public static String describe(String url) {
  		if (url.startsWith("http://"))
  			return url.substring("http://".length());
  		if (url.startsWith("https://"))
  			return url.substring("https://".length());
  		if (url.contains("/"))
  			url = StringUtils.substringAfterLast(url, "/");
  		url = StringUtils.substringBeforeLast(url, ".");
  		if (url.contains("."))
  			url = StringUtils.substringAfterLast(url, ".");
  		url = StringUtils.substringBefore(StringUtils.replaceChars(url, "-_", "  "), "?");
  		return WordUtils.capitalize(url);
  	}
focal_method.class_method_signature: UrlUtils.describe(String url)
focal_method.full_signature: public static String describe(String url)
focal_method.identifier: describe
focal_method.invocations: startsWith substring length startsWith substring length contains substringAfterLast substringBeforeLast contains substringAfterLast substringBefore replaceChars capitalize
focal_method.modifiers: public static
focal_method.parameters: (String url)
focal_method.return: String
focal_method.signature: String describe(String url)