CloneSet237


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12260.966LogicalORExpression
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111193
Closure/third_party/closure/goog/loremipsum/text/loremipsum.js
212213
Closure/third_party/closure/goog/loremipsum/text/loremipsum.js
Clone Instance
1
Line Count
11
Source Line
193
Source File
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);
                                                                              }


Clone Instance
2
Line Count
12
Source Line
213
Source File
Closure/third_party/closure/goog/loremipsum/text/loremipsum.js

                                                              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);
                                                                               }


Clone AbstractionParameter Count: 6Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e30d800]]
paragraphs 
12[[#5e30d800]]
sentences 
21[[#5e30d760]]
splitParagraphs_ 
22[[#5e30d760]]
splitSentences_ 
31[[#5e30d6c0]]
paragraphLengths 
32[[#5e30d6c0]]
sentenceLengths 
41[[#5e30d660]]
splitSentences_ 
42[[#5e30d660]]
splitWords_ 
51[[#5e30d5e0]]
paragraphMean_ 
52[[#5e30d5e0]]
sentenceMean_ 
61[[#5e30d580]]
paragraphSigma_ 
62[[#5e30d580]]
sentenceSigma_