code: def up_alpha_beta(returns, factor_returns, **kwargs):
      
      return up(returns, factor_returns, function=alpha_beta_aligned, **kwargs)
docs: Computes alpha and beta for periods when the benchmark return is positive.
  
      Parameters
      ----------
      see documentation for `alpha_beta`.
  
      Returns
      -------
      float
          Alpha.
      float
          Beta.