original_string: public function get_assign_perpage() {
          $perpage = (int) get_user_preferences('assign_perpage', 10);
          $adminconfig = $this->get_admin_config();
          $maxperpage = -1;
          if (isset($adminconfig->maxperpage)) {
              $maxperpage = $adminconfig->maxperpage;
          }
          if (isset($maxperpage) &&
              $maxperpage != -1 &&
              ($perpage == -1 || $perpage > $maxperpage)) {
              $perpage = $maxperpage;
          }
          return $perpage;
      }
code: public function get_assign_perpage() {
          $perpage = (int) get_user_preferences('assign_perpage', 10);
          $adminconfig = $this->get_admin_config();
          $maxperpage = -1;
          if (isset($adminconfig->maxperpage)) {
              $maxperpage = $adminconfig->maxperpage;
          }
          if (isset($maxperpage) &&
              $maxperpage != -1 &&
              ($perpage == -1 || $perpage > $maxperpage)) {
              $perpage = $maxperpage;
          }
          return $perpage;
      }
code_tokens: public function get_assign_perpage ( ) { $ perpage = ( int ) get_user_preferences ( 'assign_perpage' , 10 ) ; $ adminconfig = $ this -> get_admin_config ( ) ; $ maxperpage = - 1 ; if ( isset ( $ adminconfig -> maxperpage ) ) { $ maxperpage = $ adminconfig -> maxperpage ; } if ( isset ( $ maxperpage ) && $ maxperpage != - 1 && ( $ perpage == - 1 || $ perpage > $ maxperpage ) ) { $ perpage = $ maxperpage ; } return $ perpage ; }
docstring: Get the marking table page size
  
  @return integer
docstring_tokens: Get the marking table page size