CloneSet311


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.976ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121179
Closure/closure/goog/ui/serverchart.js
2111207
Closure/closure/goog/ui/serverchart.js
Clone Instance
1
Line Count
12
Source Line
1179
Source File
Closure/closure/goog/ui/serverchart.js

/**
 * Sets the widths of the bars and the spaces between the bars in a bar
 * chart.
 * NOTE: If the space between groups is specified but the space between
 *     bars is left undefined, the space between groups will be interpreted
 *     as the space between bars because this is the behavior exposed
 *     in the external developers guide.
 * @param {number} barWidth The width of a bar in pixels.
 * @param {number=} opt_spaceBars The width of the space between
 *     bars in a group in pixels.
 * @param {number=} opt_spaceGroups The width of the space between
 *     groups.
 */
goog.ui.ServerChart.prototype.setBarSpaceWidths=  function (barWidth,
                                                            opt_spaceBars,
                                                            opt_spaceGroups){
  var widths=  [barWidth];
  if (goog.isDef(opt_spaceBars)) {
    widths.push(opt_spaceBars);
                                 }
  if (goog.isDef(opt_spaceGroups)) {
    widths.push(opt_spaceGroups);
                                   }
  this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,
                              widths.join(','));
                                                                            } ;


Clone Instance
2
Line Count
11
Source Line
1207
Source File
Closure/closure/goog/ui/serverchart.js

/**
 * Specifies that the bar width in a bar chart should be calculated
 * automatically given the space available in the chart, while optionally
 * setting the spaces between the bars.
 * NOTE: If the space between groups is specified but the space between
 *     bars is left undefined, the space between groups will be interpreted
 *     as the space between bars because this is the behavior exposed
 *     in the external developers guide.
 * @param {number=} opt_spaceBars The width of the space between
 *     bars in a group in pixels.
 * @param {number=} opt_spaceGroups The width of the space between
 *     groups.
 */
goog.ui.ServerChart.prototype.setAutomaticBarWidth=  function (opt_spaceBars,
                                                               opt_spaceGroups){
  var widths=  ['a'];
  if (goog.isDef(opt_spaceBars)) {
    widths.push(opt_spaceBars);
                                 }
  if (goog.isDef(opt_spaceGroups)) {
    widths.push(opt_spaceGroups);
                                   }
  this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,
                              widths.join(','));
                                                                               } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Specifies that the bar width in a bar chart should be calculated
 * automatically given the space available in the chart, while optionally
 * setting the spaces between the bars.
 * NOTE: If the space between groups is specified but the space between
 *     bars is left undefined, the space between groups will be interpreted
 *     as the space between bars because this is the behavior exposed
 *     in the external developers guide.
 * @param {number=} opt_spaceBars The width of the space between
 *     bars in a group in pixels.
 * @param {number=} opt_spaceGroups The width of the space between
 *     groups.
 */
/**
 * Sets the widths of the bars and the spaces between the bars in a bar
 * chart.
 * NOTE: If the space between groups is specified but the space between
 *     bars is left undefined, the space between groups will be interpreted
 *     as the space between bars because this is the behavior exposed
 *     in the external developers guide.
 * @param {number} barWidth The width of a bar in pixels.
 * @param {number=} opt_spaceBars The width of the space between
 *     bars in a group in pixels.
 * @param {number=} opt_spaceGroups The width of the space between
 *     groups.
 */
goog.ui.ServerChart.prototype. [[#variable5689a340]]= function ( [[#variable5689a2c0]],opt_spaceGroups)
                                                      { var widths=[ [[#variable5689a240]]];
                                                        if (goog.isDef(opt_spaceBars))
                                                          { widths.push(opt_spaceBars);
                                                          }
                                                        if (goog.isDef(opt_spaceGroups))
                                                          { widths.push(opt_spaceGroups);
                                                          }
                                                        this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,widths.join(','));
                                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5689a340]]
setAutomaticBarWidth 
12[[#5689a340]]
setBarSpaceWidths 
21[[#5689a2c0]]
opt_spaceBars 
22[[#5689a2c0]]
barWidth,opt_spaceBars 
31[[#5689a240]]
'a' 
32[[#5689a240]]
barWidth