| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 2 | 0.973 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 60 | Closure/closure/goog/crypt/hash32.js |
| 2 | 3 | 71 | Closure/closure/goog/crypt/hash32.js |
| ||||
/**
* Hashes a string to a 32-bit value.
* @param {string} str String to hash.
* @return {number} 32-bit hash.
*/
goog.crypt.hash32.encodeString= function (str){
return goog.crypt.hash32.encodeByteArray(goog.crypt.stringToByteArray(str));
} ;
|
| ||||
/**
* Hashes a string to a 32-bit value, converting the string to UTF-8 before
* doing the encoding.
* @param {string} str String to hash.
* @return {number} 32-bit hash.
*/
goog.crypt.hash32.encodeStringUtf8= function (str){
return goog.crypt.hash32.encodeByteArray(
goog.crypt.stringToUtf8ByteArray(str));
} ;
|
| |||
/**
* Hashes a string to a 32-bit value, converting the string to UTF-8 before
* doing the encoding.
* @param {string} str String to hash.
* @return {number} 32-bit hash.
*/
/**
* Hashes a string to a 32-bit value.
* @param {string} str String to hash.
* @return {number} 32-bit hash.
*/
goog.crypt.hash32. [[#variable20243aa0]]= function (str)
{ return goog.crypt.hash32.encodeByteArray(goog.crypt. [[#variable20243a20]](str));
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#20243aa0]] | encodeStringUtf8 |
| 1 | 2 | [[#20243aa0]] | encodeString |
| 2 | 1 | [[#20243a20]] | stringToUtf8ByteArray |
| 2 | 2 | [[#20243a20]] | stringToByteArray |