original_string: public function write()
      {
          $data = array();
          $dumper = new ArrayDumper();
  
          foreach ($this->getCanonicalPackages() as $package) {
              $data[] = $dumper->dump($package);
          }
  
          $this->file->write($data);
      }
code: public function write()
      {
          $data = array();
          $dumper = new ArrayDumper();
  
          foreach ($this->getCanonicalPackages() as $package) {
              $data[] = $dumper->dump($package);
          }
  
          $this->file->write($data);
      }
code_tokens: public function write ( ) { $ data = array ( ) ; $ dumper = new ArrayDumper ( ) ; foreach ( $ this -> getCanonicalPackages ( ) as $ package ) { $ data [ ] = $ dumper -> dump ( $ package ) ; } $ this -> file -> write ( $ data ) ; }
docstring: Writes writable repository.
docstring_tokens: Writes writable repository .