CloneSet1233


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.960ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13121
Closure/closure/goog/structs/linkedmap.js
23135
Closure/closure/goog/structs/linkedmap.js
Clone Instance
1
Line Count
3
Source Line
121
Source File
Closure/closure/goog/structs/linkedmap.js

/**
 * Retrieves the value for a given key. If this is a caching LinkedMap, the
 * entry will become the most recently used.
 * @param {string} key The key to retrieve the value for.
 * @param {*=} opt_val A default value that will be returned if the key is
 *     not found, defaults to undefined.
 * @return {*} The retrieved value.
 */
goog.structs.LinkedMap.prototype.get=  function (key, opt_val){
  var node=  this.findAndMoveToTop_(key);
  return node
         ?      node.value
         :                   opt_val;
                                                              } ;


Clone Instance
2
Line Count
3
Source Line
135
Source File
Closure/closure/goog/structs/linkedmap.js

/**
 * Retrieves the value for a given key without updating the entry to be the
 * most recently used.
 * @param {string} key The key to retrieve the value for.
 * @param {*=} opt_val A default value that will be returned if the key is
 *     not found.
 * @return {*} The retrieved value.
 */
goog.structs.LinkedMap.prototype.peekValue=  function (key, opt_val){
  var node=  this.map_.get(key);
  return node
         ?      node.value
         :                   opt_val;
                                                                    } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Retrieves the value for a given key without updating the entry to be the
 * most recently used.
 * @param {string} key The key to retrieve the value for.
 * @param {*=} opt_val A default value that will be returned if the key is
 *     not found.
 * @return {*} The retrieved value.
 */
/**
 * Retrieves the value for a given key. If this is a caching LinkedMap, the
 * entry will become the most recently used.
 * @param {string} key The key to retrieve the value for.
 * @param {*=} opt_val A default value that will be returned if the key is
 *     not found, defaults to undefined.
 * @return {*} The retrieved value.
 */
goog.structs.LinkedMap.prototype. [[#variable1e3da000]]= function (key,opt_val)
                                                         { var node= [[#variable20ffffa0]]. [[#variable20ffff40]](key);
                                                           return node
                                                                  ?node.value
                                                                  :opt_val;
                                                         } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1e3da000]]
peekValue 
12[[#1e3da000]]
get 
21[[#20ffffa0]]
this.map_ 
22[[#20ffffa0]]
this 
31[[#20ffff40]]
get 
32[[#20ffff40]]
findAndMoveToTop_