original_string: public function insertMulti(array $hashes)
      {
          $valuesString = '';
          foreach ($hashes as $id => $hash) {
              $valuesString .= "('$id','$hash'),";
          }
  
          $this->storage->exec("INSERT INTO " . $this->tableName . "(id, hash) VALUES " . rtrim($valuesString, ','));
      }
code: public function insertMulti(array $hashes)
      {
          $valuesString = '';
          foreach ($hashes as $id => $hash) {
              $valuesString .= "('$id','$hash'),";
          }
  
          $this->storage->exec("INSERT INTO " . $this->tableName . "(id, hash) VALUES " . rtrim($valuesString, ','));
      }
code_tokens: public function insertMulti ( array $ hashes ) { $ valuesString = '' ; foreach ( $ hashes as $ id => $ hash ) { $ valuesString .= "('$id','$hash')," ; } $ this -> storage -> exec ( "INSERT INTO " . $ this -> tableName . "(id, hash) VALUES " . rtrim ( $ valuesString , ',' ) ) ; }
docstring: Inserts hashes in batch for better performance
  @param array $hashes 'id' => 'hash'
docstring_tokens: Inserts hashes in batch for better performance