original_string: private function init(int $locks)
      {
          $locks = (int) $locks;
          if ($locks < 1) {
              $locks = 1;
          }
  
          $this->semaphore = new Internal\Semaphore($locks);
          $this->maxLocks = $locks;
      }
code: private function init(int $locks)
      {
          $locks = (int) $locks;
          if ($locks < 1) {
              $locks = 1;
          }
  
          $this->semaphore = new Internal\Semaphore($locks);
          $this->maxLocks = $locks;
      }
code_tokens: private function init ( int $ locks ) { $ locks = ( int ) $ locks ; if ( $ locks < 1 ) { $ locks = 1 ; } $ this -> semaphore = new Internal \ Semaphore ( $ locks ) ; $ this -> maxLocks = $ locks ; }
docstring: Initializes the semaphore with a given number of locks.
  
  @param int $locks
docstring_tokens: Initializes the semaphore with a given number of locks .