original_string: public function translateRowValues($row, $key)
      {
          $row = parent::translateRowValues($row, $key);
  
          if (! $row) {
              return false;
          }
          
          // Default to active and can login
          if (!isset($row['gsf_active'])) {
              $row['gsf_active'] = 1;
          }        
          if (!isset($row['gul_can_login'])) {
              $row['gul_can_login'] = 1;
          }
          
          // Make sure we have an organization
          if (!isset($row['gsf_id_organization'])) {
              $row['gsf_id_organization'] = $this->_organization->getId();
          }
          
          // Use organization default userclass is not specified
          if (!isset($row['gul_user_class'])) {
              $row['gul_user_class'] = $this->loader->getUserLoader()->getOrganization($row['gsf_id_organization'])->get('gor_user_class');
          }
  
          return $row;
      }
code: public function translateRowValues($row, $key)
      {
          $row = parent::translateRowValues($row, $key);
  
          if (! $row) {
              return false;
          }
          
          // Default to active and can login
          if (!isset($row['gsf_active'])) {
              $row['gsf_active'] = 1;
          }        
          if (!isset($row['gul_can_login'])) {
              $row['gul_can_login'] = 1;
          }
          
          // Make sure we have an organization
          if (!isset($row['gsf_id_organization'])) {
              $row['gsf_id_organization'] = $this->_organization->getId();
          }
          
          // Use organization default userclass is not specified
          if (!isset($row['gul_user_class'])) {
              $row['gul_user_class'] = $this->loader->getUserLoader()->getOrganization($row['gsf_id_organization'])->get('gor_user_class');
          }
  
          return $row;
      }
code_tokens: public function translateRowValues ( $ row , $ key ) { $ row = parent :: translateRowValues ( $ row , $ key ) ; if ( ! $ row ) { return false ; } // Default to active and can login if ( ! isset ( $ row [ 'gsf_active' ] ) ) { $ row [ 'gsf_active' ] = 1 ; } if ( ! isset ( $ row [ 'gul_can_login' ] ) ) { $ row [ 'gul_can_login' ] = 1 ; } // Make sure we have an organization if ( ! isset ( $ row [ 'gsf_id_organization' ] ) ) { $ row [ 'gsf_id_organization' ] = $ this -> _organization -> getId ( ) ; } // Use organization default userclass is not specified if ( ! isset ( $ row [ 'gul_user_class' ] ) ) { $ row [ 'gul_user_class' ] = $ this -> loader -> getUserLoader ( ) -> getOrganization ( $ row [ 'gsf_id_organization' ] ) -> get ( 'gor_user_class' ) ; } return $ row ; }
docstring: Add organization id and gul_user_class when needed
  
  @param mixed $row array or \Traversable row
  @param scalar $key
  @return mixed Row array or false when errors occurred
docstring_tokens: Add organization id and gul_user_class when needed