called on country field initialization. It reduces the subset of countries depending on whether the user specified a white/blacklist and parses the region list to extract the
551401
function (params) {
        var countries = _data;
        var subset = [], i = 0;
        if (params.whitelist) {
            var whitelist = params.whitelist.split(",");
            for (i = 0; i < _data.length; i++) {
                if (whitelist.indexOf(_data[i][1]) !== -1) {
                    subset.push(_data[i]);
                }
            }
            countries = subset;
        } else if (params.blacklist) {
            var blacklist = params.blacklist.split(",");
            for (i = 0; i < _data.length; i++) {
                if (blacklist.indexOf(_data[i][1]) === -1) {
                    subset.push(_data[i]);
                }
            }
            countries = subset;
        }

        if (params.preferred) {
            countries = _applyPreferredCountries(countries, params.preferred, params.preferredDelim);
        }

        _countries = countries;

        // now init the regions
        _initRegions();
    }
68665
def country_choices(first=None, default_country_first=True):
    
    locale = _get_locale()
    territories = [
        (code, name) for code, name in locale.territories.items() if len(code) == 2
    ]  # skip 3-digit regions

    if first is None and default_country_first:
        first = default_country()

    def sortkey(item):
        if first is not None and item[0] == first:
            return "0"
        return to_lower_ascii(item[1])

    territories.sort(key=sortkey)
    return territories
1142320
private function _checkCountry(&$country)
    {
        if (!isset($country)) {
            throw new Klarna_ArgumentNotSetException("Country");
        }
        if (is_numeric($country) && !is_int($country)) {
            $country = intval($country);
        }
        if (!is_numeric($country) || !is_int($country)) {
            throw new Klarna_InvalidTypeException("Country", "integer");
        }
    }
49367
@Check
	public void checkFinalFieldInitialization(SarlSkill skill) {
		final JvmGenericType inferredType = this.associations.getInferredType(skill);
		if (inferredType != null) {
			checkFinalFieldInitialization(inferredType);
		}
	}
694034
public void init(BaseField field, BaseListener listenerToDisable,  String strDisableOnMatch,  boolean bDisableIfMatch)
    {
        super.init(field);
        m_listenerToDisable = listenerToDisable;
        m_strDisableOnMatch = strDisableOnMatch;
        m_bDisableIfMatch = bDisableIfMatch;
    }
470457
public void initializeMerge(int numRegions) {
		mergeList.resize(numRegions);
		for( int i = 0; i < numRegions; i++ )
			mergeList.data[i] = i;
	}
1212540
def country=(country)
      validator = EnumAttributeValidator.new('String', ["ZZ", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"])
      unless validator.valid?(country)
        fail ArgumentError, "invalid value for 'country', must be one of #{validator.allowable_values}."
      end
      @country = country
    end
285560
function countryMouseover(feature, leafletEvent) {
                var layer = leafletEvent.target;
                layer.setStyle({
                    weight: 2,
                    color: '#666',
                    fillColor: 'white'
                });
                layer.bringToFront();
                $scope.selectedCountry = feature;
                console.log(feature);
            }
358180
def countries(self):
        
        if self._countries is None:
            self._countries = CountryList(self._version, )
        return self._countries
784192
function getCountryList() {
        var countries = grunt.option("countries");
        if (!countries) {
            grunt.fail.fatal("Country list not passed. Example usage: `grunt customBuild --countries=Canada,United States`");
        }

        // countries may contain commas in their names. Bit ugly, but simple. This swiches out those escaped commas
        // and replaces them later
        var commaReplaced = countries.replace(/\\,/g, '{COMMA}');
        var targetCountries = _.map(commaReplaced.split(","), function (country) {
            return country.replace(/\{COMMA\}/, ',').trim();
        });

        var countryData = [];
        var foundCountryNames = [];

        var formattedData = minifyJSON(countriesJSON);
        _.each(formattedData, function (countryInfo) {
            var countryName = countryInfo[0];
            if (_.contains(targetCountries, countryName)) {
                countryData.push(countryInfo);
                foundCountryNames.push(countryName);
            }
        });

        // if one or more of the countries wasn't found, they probably made a typo: throw a warning but continue
        if (targetCountries.length !== countryData.length) {
            grunt.log.error("The following countries weren't found (check the source/data.json file to ensure you entered the exact country string):");
            var missing = _.difference(targetCountries, foundCountryNames);
            _.each(missing, function (countryName) {
                grunt.log.error("--", countryName);
            });

            // all good! Let the user know what bundle is being created, just to remove any ambiguity
        } else {
            grunt.log.writeln("");
            grunt.log.writeln("Creating bundle with following countries:");
            _.each(targetCountries, function (country) {
                grunt.log.writeln("* " + country);
            });
        }

        config.template.customBuild.options.data.__DATA__ = "\nvar _data = " + JSON.stringify(countryData);
    }
1274206
def clean_text(self, country, guess=False, **kwargs):
        
        code = country.lower().strip()
        if code in self.names:
            return code
        country = countrynames.to_code(country, fuzzy=guess)
        if country is not None:
            return country.lower()
1352955
def filter_country_locations(api_response, is_country=True):
    
    return [item for item in api_response if item[ISCOUNTRY]==is_country]
336192
private void init() {
        // null implies "no expression"
        value_ = type_ = pattern_ = null;
        currencyCode_ = currencySymbol_ = null;
        groupingUsed_ = null;
        maxIntegerDigits_ = minIntegerDigits_ = null;
        maxFractionDigits_ = minFractionDigits_ = null;
    }
1174326
def getCountry(value):
        
        if not helpers.has_len(value):
            return False

        return COUNTRIES.get(str(value).lower(), False)
722485
private void processUserDefinedFields()
   {
      List<Row> fields = getRows("udftype", null, null);
      List<Row> values = getRows("udfvalue", null, null);
      m_reader.processUserDefinedFields(fields, values);
   }
851100
private void initializeIfNeeded() throws BackendInitializationException,
            BackendNewInstanceException {
        if (isClosed()) {
            throw new IllegalStateException("Knowledge source already closed!");
        }
        if (this.inDataSourceGetter == null) {
            this.inDataSourceGetter
                    = new SubtreePropositionDefinitionGetterRegular(this, true);
        }
        if (this.collectSubtreeGetter == null) {
            this.collectSubtreeGetter
                    = new SubtreePropositionDefinitionGetterRegular(this, false);
        }
    }
520169
def valid_for_country?(country)
      country = country.to_s.upcase
      tdata = analyze(sanitized, passed_country(country))
      tdata.find do |iso2, data|
        country == iso2 && data[:valid].any?
      end.is_a? Array
    end