CloneSet214


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
56230.982class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15635
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ASpellPlugin.java
25540
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/GPGPlugin.java
Next
Last
Clone Instance
1
Line Count
56
Source Line
35
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ASpellPlugin.java

protected static URL websiteURL;

static {
  try {
    websiteURL = new URL("http://aspell.sourceforge.net/");
  }
  catch (MalformedURLException
         mue) {
  }
//does not happen
}

   /**
* Construct the default ASpell plugin.
*/
public ASpellPlugin() {
  super();
}

public String getDescription() {
  // TODO (@author fdietz): i18n
  return "<html><body><p>GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.</p><p>It can either be used as a library or as an independent spell checker. Its main feature is that it does a much better job of coming up with possible suggestions than just about any other spell checker out there for the English language, including Ispell and Microsoft Word.</p></p>It also has many other technical enhancements over Ispell such as using shared memory for dictionaries and intelligently handling personal dictionaries when more than one Aspell process is open at once.</p></body></html>";
}

public URL getWebsite() {
  return websiteURL;
}

public File locate() {
       /* If this is a unix-based system, check the 2 best-known areas for the
* aspell binary.
*/
  if (OSInfo.isLinux() || OSInfo.isSolaris()) {
    if (defaultLinux.exists()) {
      return defaultLinux;
    }
    else
      if (defaultLocalLinux.exists()) {
        return defaultLocalLinux;
      }
  }
       /* RIYAD: The Prefs API cannot be used to read the Window's registry,
* it is coded to use the registry (if available) as a backing store
* on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER
* and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use
* the Windows registry and they all required a native lib to do it.
*/
       /* If this is windows, check the default installation location for the
* aspell.exe binary.
*/
  if (OSInfo.isWin32Platform() && defaultWin.exists()) {
    return defaultWin;
  }
       /* Couldn't find anything, so return null and let the wizard ask the
* user.
*/
  return null;
}


First
Previous
Clone Instance
2
Line Count
55
Source Line
40
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/GPGPlugin.java

protected static URL websiteURL;

static {
  try {
    websiteURL = new URL("http://www.gnupg.org/");
  }
  catch (MalformedURLException
         mue) {
  }
//does not happen
}

   /**
* Construct the default GPG plugin.
*/
public GPGPlugin() {
  super();
}

public String getDescription() {
  return "<html><body><p>GnuPG is a complete and free replacement for PGP.</p><p>Because it does not use the patented IDEA algorithm, it can be used without any restrictions. GnuPG is a RFC2440 (OpenPGP) compliant application.</p><p>GnuPG itself is a commandline tool without any graphical stuff. It is the real crypto engine which can be used directly from a command prompt, from shell scripts or by other programs. Therefore it can be considered as a backend for other applications.</p></body></html>";
}

public URL getWebsite() {
  return websiteURL;
}

public File locate() {
       /* If this is a unix-based system, check the 2 best-known areas for the
* gpg binary.
*/
  if (OSInfo.isLinux() || OSInfo.isSolaris()) {
    if (defaultLinux.exists()) {
      return defaultLinux;
    }
    else
      if (defaultLocalLinux.exists()) {
        return defaultLocalLinux;
      }
  }
       /* RIYAD: The Prefs API cannot be used to read the Window's registry,
* it is coded to use the registry (if available) as a backing store
* on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER
* and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use
* the Windows registry and they all required a native lib to do it.
*/
       /* If this is windows, check the default installation location for the
* gpg.exe binary.
*/
  if (OSInfo.isWin32Platform() && defaultWin.exists()) {
    return defaultWin;
  }
       /* Couldn't find anything, so return null and let the wizard ask the
* user.
*/
  return null;
}


Clone AbstractionParameter Count: 3Parameter Bindings

protected static URL websiteURL;

static {
  try {
    websiteURL = new URL( [[#variable113d1ec0]]);
  }
  catch (MalformedURLException
         mue) {
  }
//does not happen
}

/**
 * Construct the default ASpell plugin.
 */
/**
 * Construct the default GPG plugin.
 */
public [[#variable113d1e60]]() {
  super();
}

public String getDescription() {
  // TODO (@author fdietz): i18n
  return [[#variable113d1ce0]];
}

public URL getWebsite() {
  return websiteURL;
}

public File locate() {
  /* If this is a unix-based system, check the 2 best-known areas for the
   * aspell binary.
   */
  /* If this is a unix-based system, check the 2 best-known areas for the
   * gpg binary.
   */
  if (OSInfo.isLinux() || OSInfo.isSolaris()) {
    if (defaultLinux.exists()) {
      return defaultLinux;
    }
    else
      if (defaultLocalLinux.exists()) {
        return defaultLocalLinux;
      }
  }
  /* RIYAD: The Prefs API cannot be used to read the Window's registry,
   * it is coded to use the registry (if available) as a backing store
   * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER
   * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use
   * the Windows registry and they all required a native lib to do it.
   */
  /* If this is windows, check the default installation location for the
   * aspell.exe binary.
   */
  /* If this is windows, check the default installation location for the
   * gpg.exe binary.
   */
  if (OSInfo.isWin32Platform() && defaultWin.exists()) {
    return defaultWin;
  }
  /* Couldn't find anything, so return null and let the wizard ask the
   * user.
   */
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#113d1ec0]]
"http://aspell.sourceforge.net/" 
12[[#113d1ec0]]
"http://www.gnupg.org/" 
21[[#113d1e60]]
ASpellPlugin 
22[[#113d1e60]]
GPGPlugin 
31[[#113d1ce0]]
"<html><body><p>GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.</p><p>It can either be used as a library or as an independent spell checker. Its main feature is that it does a much better job of coming up with possible suggestions than just about any other spell checker out there for the English language, including Ispell and Microsoft Word.</p></p>It also has many other technical enhancements over Ispell such as using shared memory for dictionaries and intelligently handling personal dictionaries when more than one Aspell process is open at once.</p></body></html>" 
32[[#113d1ce0]]
"<html><body><p>GnuPG is a complete and free replacement for PGP.</p><p>Because it does not use the patented IDEA algorithm, it can be used without any restrictions. GnuPG is a RFC2440 (OpenPGP) compliant application.</p><p>GnuPG itself is a commandline tool without any graphical stuff. It is the real crypto engine which can be used directly from a command prompt, from shell scripts or by other programs. Therefore it can be considered as a backend for other applications.</p></body></html>"