| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 2 | 6 | 0.966 | LogicalORExpression |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 193 | Closure/third_party/closure/goog/loremipsum/text/loremipsum.js |
| 2 | 12 | 213 | Closure/third_party/closure/goog/loremipsum/text/loremipsum.js |
| ||||
function (sample){
var sentences= goog.array.filter(
goog.text.LoremIpsum.splitSentences_(sample),
goog.text.LoremIpsum.isNotEmptyOrWhitepace_);
var sentenceLengths= goog.array.map(
goog.array.map(sentences, goog.text.LoremIpsum.splitWords_),
goog.text.LoremIpsum.arrayLength_);
this.sentenceMean_= goog.math.average.apply(null, sentenceLengths);
this.sentenceSigma_= goog.math.standardDeviation.apply(
null, sentenceLengths);
}
|
| ||||
function (sample){
var paragraphs= goog.array.filter(
goog.text.LoremIpsum.splitParagraphs_(sample),
goog.text.LoremIpsum.isNotEmptyOrWhitepace_);
var paragraphLengths= goog.array.map(
goog.array.map(paragraphs, goog.text.LoremIpsum.splitSentences_),
goog.text.LoremIpsum.arrayLength_);
this.paragraphMean_= goog.math.average.apply(null, paragraphLengths);
this.paragraphSigma_= goog.math.standardDeviation.apply(
null, paragraphLengths);
}
|
| |||
function (sample)
{ var [[#variable5e30d800]]=goog.array.filter(goog.text.LoremIpsum. [[#variable5e30d760]](sample),goog.text.LoremIpsum.isNotEmptyOrWhitepace_);
var [[#variable5e30d6c0]]=goog.array.map(goog.array.map( [[#variable5e30d800]],goog.text.LoremIpsum. [[#variable5e30d660]]),goog.text.LoremIpsum.arrayLength_);
this. [[#variable5e30d5e0]]=goog.math.average.apply(null, [[#variable5e30d6c0]]);
this. [[#variable5e30d580]]=goog.math.standardDeviation.apply(null, [[#variable5e30d6c0]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5e30d800]] | paragraphs |
| 1 | 2 | [[#5e30d800]] | sentences |
| 2 | 1 | [[#5e30d760]] | splitParagraphs_ |
| 2 | 2 | [[#5e30d760]] | splitSentences_ |
| 3 | 1 | [[#5e30d6c0]] | paragraphLengths |
| 3 | 2 | [[#5e30d6c0]] | sentenceLengths |
| 4 | 1 | [[#5e30d660]] | splitSentences_ |
| 4 | 2 | [[#5e30d660]] | splitWords_ |
| 5 | 1 | [[#5e30d5e0]] | paragraphMean_ |
| 5 | 2 | [[#5e30d5e0]] | sentenceMean_ |
| 6 | 1 | [[#5e30d580]] | paragraphSigma_ |
| 6 | 2 | [[#5e30d580]] | sentenceSigma_ |