original_string: public static function getContinent($country)
      {
          /** @var RegionDataProvider $dataProvider */
          $dataProvider = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider');
  
          $countryList = $dataProvider->getCountryList();
  
          if ($country == 'ti') {
              $country = 'cn';
          }
  
          return isset($countryList[$country]) ? $countryList[$country] : 'unk';
      }
code: public static function getContinent($country)
      {
          /** @var RegionDataProvider $dataProvider */
          $dataProvider = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider');
  
          $countryList = $dataProvider->getCountryList();
  
          if ($country == 'ti') {
              $country = 'cn';
          }
  
          return isset($countryList[$country]) ? $countryList[$country] : 'unk';
      }
code_tokens: public static function getContinent ( $ country ) { /** @var RegionDataProvider $dataProvider */ $ dataProvider = StaticContainer :: get ( 'Piwik\Intl\Data\Provider\RegionDataProvider' ) ; $ countryList = $ dataProvider -> getCountryList ( ) ; if ( $ country == 'ti' ) { $ country = 'cn' ; } return isset ( $ countryList [ $ country ] ) ? $ countryList [ $ country ] : 'unk' ; }
docstring: Returns the continent of a given country
  
  @param string $country 2 letters iso code
  
  @return string  Continent (3 letters code : afr, asi, eur, amn, ams, oce)
docstring_tokens: Returns the continent of a given country