CloneSet405


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.978ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19316
Closure/closure/goog/locale/locale.js
29359
Closure/closure/goog/locale/locale.js
Clone Instance
1
Line Count
9
Source Line
316
Source File
Closure/closure/goog/locale/locale.js

/**
 * Returns the localized country name for the provided language code in the
 * current or provided locale symbols set.
 *
 * This method depends on goog.locale.LocaleNameConstants__<locale> available
 * from //javascript/googledata/i18n/js_locale_data. User of this method
 * has to add dependency to this.
 *
 * @param {string} languageCode Language code to lookup the country name for.
 * @param {Object=} opt_localeSymbols If omitted the current locale symbol
 *     set is used.
 *
 * @return {string} Localized country name.
 */
goog.locale.getLocalizedCountryName=  function (languageCode,
                                                opt_localeSymbols){
  if (!opt_localeSymbols) {
    opt_localeSymbols=  goog.locale.getResource('LocaleNameConstants',
        goog.locale.getLocale( ));
                          }
  var code=  goog.locale.getRegionSubTag(languageCode);
  return code in opt_localeSymbols.COUNTRY
         ?opt_localeSymbols.COUNTRY[code]
         :                              languageCode;
                                                                  } ;


Clone Instance
2
Line Count
9
Source Line
359
Source File
Closure/closure/goog/locale/locale.js

/**
 * Returns the localized language name for the provided language code in
 * the current or provided locale symbols set.
 *
 * This method depends on goog.locale.LocaleNameConstants__<locale> available
 * from //javascript/googledata/i18n/js_locale_data. User of this method
 * has to add dependency to this.
 *
 * @param {string} languageCode Language code to lookup the language name for.
 * @param {Object=} opt_localeSymbols locale symbol set if given.
 *
 * @return {string} Localized language name of the provided language code.
 */
goog.locale.getLocalizedLanguageName=  function (languageCode,
                                                 opt_localeSymbols){
  if (!opt_localeSymbols) {
    opt_localeSymbols=  goog.locale.getResource('LocaleNameConstants',
        goog.locale.getLocale( ));
                          }
  var code=  goog.locale.getLanguageSubTag(languageCode);
  return code in opt_localeSymbols.LANGUAGE
         ?opt_localeSymbols.LANGUAGE[code]
         :                               languageCode;
                                                                   } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns the localized language name for the provided language code in
 * the current or provided locale symbols set.
 *
 * This method depends on goog.locale.LocaleNameConstants__<locale> available
 * from //javascript/googledata/i18n/js_locale_data. User of this method
 * has to add dependency to this.
 *
 * @param {string} languageCode Language code to lookup the language name for.
 * @param {Object=} opt_localeSymbols locale symbol set if given.
 *
 * @return {string} Localized language name of the provided language code.
 */
/**
 * Returns the localized country name for the provided language code in the
 * current or provided locale symbols set.
 *
 * This method depends on goog.locale.LocaleNameConstants__<locale> available
 * from //javascript/googledata/i18n/js_locale_data. User of this method
 * has to add dependency to this.
 *
 * @param {string} languageCode Language code to lookup the country name for.
 * @param {Object=} opt_localeSymbols If omitted the current locale symbol
 *     set is used.
 *
 * @return {string} Localized country name.
 */
goog.locale. [[#variable599f1480]]= function (languageCode,opt_localeSymbols)
                                    { if (!opt_localeSymbols)
                                        { opt_localeSymbols=goog.locale.getResource('LocaleNameConstants',goog.locale.getLocale( ));
                                        }
                                      var code=goog.locale. [[#variable599f1420]](languageCode);
                                      return code in opt_localeSymbols. [[#variable599f13c0]]
                                             ?opt_localeSymbols. [[#variable599f13c0]][code]
                                             :languageCode;
                                    } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#599f1480]]
getLocalizedLanguageName 
12[[#599f1480]]
getLocalizedCountryName 
21[[#599f1420]]
getLanguageSubTag 
22[[#599f1420]]
getRegionSubTag 
31[[#599f13c0]]
LANGUAGE 
32[[#599f13c0]]
COUNTRY