original_string: protected function assignIdsFromUri($entries) {
          foreach ($entries as &$entry) {
              $entry['id'] = (int) preg_replace('#.*?(\d+)$#', '$1', $entry['uri']);
          }
  
          return $entries;
      }
code: protected function assignIdsFromUri($entries) {
          foreach ($entries as &$entry) {
              $entry['id'] = (int) preg_replace('#.*?(\d+)$#', '$1', $entry['uri']);
          }
  
          return $entries;
      }
code_tokens: protected function assignIdsFromUri ( $ entries ) { foreach ( $ entries as & $ entry ) { $ entry [ 'id' ] = ( int ) preg_replace ( '#.*?(\d+)$#' , '$1' , $ entry [ 'uri' ] ) ; } return $ entries ; }
docstring: Loops through a set of entries, assigning them IDs based on the item URI
  
  @param  array $entries Entries to assign IDs for
  @return array
docstring_tokens: Loops through a set of entries assigning them IDs based on the item URI