original_string: public static function get_new_iid($type) {
          global $USER;
  
          $filename = make_temp_directory('csvimport/'.$type.'/'.$USER->id);
  
          // use current (non-conflicting) time stamp
          $iiid = time();
          while (file_exists($filename.'/'.$iiid)) {
              $iiid--;
          }
  
          return $iiid;
      }
code: public static function get_new_iid($type) {
          global $USER;
  
          $filename = make_temp_directory('csvimport/'.$type.'/'.$USER->id);
  
          // use current (non-conflicting) time stamp
          $iiid = time();
          while (file_exists($filename.'/'.$iiid)) {
              $iiid--;
          }
  
          return $iiid;
      }
code_tokens: public static function get_new_iid ( $ type ) { global $ USER ; $ filename = make_temp_directory ( 'csvimport/' . $ type . '/' . $ USER -> id ) ; // use current (non-conflicting) time stamp $ iiid = time ( ) ; while ( file_exists ( $ filename . '/' . $ iiid ) ) { $ iiid -- ; } return $ iiid ; }
docstring: Create new import id
  
  @global object
  @param string who imports?
  @return int iid
docstring_tokens: Create new import id