original_string: private function getSamplesByLabel(string $label): array
      {
          $samples = [];
          for ($i = 0; $i < $this->sampleCount; ++$i) {
              if ($this->targets[$i] == $label) {
                  $samples[] = $this->samples[$i];
              }
          }
  
          return $samples;
      }
code: private function getSamplesByLabel(string $label): array
      {
          $samples = [];
          for ($i = 0; $i < $this->sampleCount; ++$i) {
              if ($this->targets[$i] == $label) {
                  $samples[] = $this->samples[$i];
              }
          }
  
          return $samples;
      }
code_tokens: private function getSamplesByLabel ( string $ label ) : array { $ samples = [ ] ; for ( $ i = 0 ; $ i < $ this -> sampleCount ; ++ $ i ) { if ( $ this -> targets [ $ i ] == $ label ) { $ samples [ ] = $ this -> samples [ $ i ] ; } } return $ samples ; }
docstring: Return samples belonging to specific label
docstring_tokens: Return samples belonging to specific label