| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 2 | 0.979 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 396 | Closure/third_party/closure/goog/loremipsum/text/loremipsum.js |
| 2 | 4 | 409 | Closure/third_party/closure/goog/loremipsum/text/loremipsum.js |
| ||||
/**
* Splits a piece of text into sentences.
* @param {string} text The text to split.
* @return {Array.<string>} An array of sentences.
* @private
*/
goog.text.LoremIpsum.splitSentences_= function (text){
return goog.array.filter(
text.split(goog.text.LoremIpsum.SENTENCE_SPLIT_REGEX_),
goog.text.LoremIpsum.isNotEmptyOrWhitepace_);
} ;
|
| ||||
/**
* Splits a piece of text into words..
* @param {string} text The text to split.
* @return {Array.<string>} An array of words.
* @private
*/
goog.text.LoremIpsum.splitWords_= function (text){
return goog.array.filter(
text.split(goog.text.LoremIpsum.WORD_SPLIT_REGEX_),
goog.text.LoremIpsum.isNotEmptyOrWhitepace_);
} ;
|
| |||
/**
* Splits a piece of text into words..
* @param {string} text The text to split.
* @return {Array.<string>} An array of words.
* @private
*/
/**
* Splits a piece of text into sentences.
* @param {string} text The text to split.
* @return {Array.<string>} An array of sentences.
* @private
*/
goog.text.LoremIpsum. [[#variable1f488b60]]= function (text)
{ return goog.array.filter(text.split(goog.text.LoremIpsum. [[#variable1f488b00]]),goog.text.LoremIpsum.isNotEmptyOrWhitepace_);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1f488b60]] | splitWords_ |
| 1 | 2 | [[#1f488b60]] | splitSentences_ |
| 2 | 1 | [[#1f488b00]] | WORD_SPLIT_REGEX_ |
| 2 | 2 | [[#1f488b00]] | SENTENCE_SPLIT_REGEX_ |