original_string: private function getSamplesMatrix(): Matrix
      {
          $samples = [];
          foreach ($this->samples as $sample) {
              array_unshift($sample, 1);
              $samples[] = $sample;
          }
  
          return new Matrix($samples);
      }
code: private function getSamplesMatrix(): Matrix
      {
          $samples = [];
          foreach ($this->samples as $sample) {
              array_unshift($sample, 1);
              $samples[] = $sample;
          }
  
          return new Matrix($samples);
      }
code_tokens: private function getSamplesMatrix ( ) : Matrix { $ samples = [ ] ; foreach ( $ this -> samples as $ sample ) { array_unshift ( $ sample , 1 ) ; $ samples [ ] = $ sample ; } return new Matrix ( $ samples ) ; }
docstring: Add one dimension for intercept calculation.
docstring_tokens: Add one dimension for intercept calculation .