original_docstring: compute right padding (final frame) or both sides padding (first and final frames)
      
docstring: compute right padding (final frame) or both sides padding (first and final frames)
docstring_tokens: compute right padding ( final frame ) or both sides padding ( first and final frames )
code: def librosa_pad_lr(x, fsize, fshift, pad_sides=1):
      '''compute right padding (final frame) or both sides padding (first and final frames)
      '''
      assert pad_sides in (1, 2)
      # return int(fsize // 2)
      pad = (x.shape[0] // fshift + 1) * fshift - x.shape[0]
      if pad_sides == 1:
          return 0, pad
      else:
          return pad // 2, pad // 2 + pad % 2
code_tokens: def librosa_pad_lr ( x , fsize , fshift , pad_sides = 1 ) : assert pad_sides in ( 1 , 2 ) pad = ( x . shape [ 0 ] // fshift + 1 ) * fshift - x . shape [ 0 ] if pad_sides == 1 : return 0 , pad else : return pad // 2 , pad // 2 + pad % 2
short_docstring: compute right padding (final frame) or both sides padding (first and final frames)
short_docstring_tokens: compute right padding ( final frame ) or both sides padding ( first and final frames )
comment: '''compute right padding (final frame) or both sides padding (first and final frames)
      '''$SEP$# return int(fsize // 2)