original_string: public function importArticleStatistics()
      {
          $pendingImports = $this->em->getRepository('ImportBundle:PendingStatisticImport')->findAll();
          $this->consoleOutput->writeln("Importing article statistics...");
  
          foreach ($pendingImports as $import) {
              $this->importArticleStatistic($import->getOldId(), $import->getArticle()->getId());
              $this->em->remove($import);
              $this->em->flush($import);
          }
      }
code: public function importArticleStatistics()
      {
          $pendingImports = $this->em->getRepository('ImportBundle:PendingStatisticImport')->findAll();
          $this->consoleOutput->writeln("Importing article statistics...");
  
          foreach ($pendingImports as $import) {
              $this->importArticleStatistic($import->getOldId(), $import->getArticle()->getId());
              $this->em->remove($import);
              $this->em->flush($import);
          }
      }
code_tokens: public function importArticleStatistics ( ) { $ pendingImports = $ this -> em -> getRepository ( 'ImportBundle:PendingStatisticImport' ) -> findAll ( ) ; $ this -> consoleOutput -> writeln ( "Importing article statistics..." ) ; foreach ( $ pendingImports as $ import ) { $ this -> importArticleStatistic ( $ import -> getOldId ( ) , $ import -> getArticle ( ) -> getId ( ) ) ; $ this -> em -> remove ( $ import ) ; $ this -> em -> flush ( $ import ) ; } }
docstring: Imports article statistics whose import are pending.
docstring_tokens: Imports article statistics whose import are pending .