original_docstring: 
          Takes a string containing ranges of values such as 1-3 and 4,5,6,7 and
          expands them into a single list.
          
docstring: Takes a string containing ranges of values such as 1-3 and 4,5,6,7 and
  expands them into a single list.
docstring_tokens: Takes a string containing ranges of values such as 1 - 3 and 4 5 6 7 and expands them into a single list .
code: def expand_value_ranges(cls, ranges):
          """
          Takes a string containing ranges of values such as 1-3 and 4,5,6,7 and
          expands them into a single list.
          """
          if not ranges:
              return ranges
  
          expanded = []
          ranges = ranges.split(',')
          for subrange in ranges:
              # expand ranges
              subrange = subrange.partition('-')
              if subrange[1] == '-':
                  expanded += range(int(subrange[0]), int(subrange[2]) + 1)
              else:
                  expanded.append(int(subrange[0]))
  
          return expanded
code_tokens: def expand_value_ranges ( cls , ranges ) : if not ranges : return ranges expanded = [ ] ranges = ranges . split ( ',' ) for subrange in ranges : subrange = subrange . partition ( '-' ) if subrange [ 1 ] == '-' : expanded += range ( int ( subrange [ 0 ] ) , int ( subrange [ 2 ] ) + 1 ) else : expanded . append ( int ( subrange [ 0 ] ) ) return expanded
short_docstring: Takes a string containing ranges of values such as 1-3 and 4,5,6,7 and
  expands them into a single list.
short_docstring_tokens: Takes a string containing ranges of values such as 1 - 3 and 4 5 6 7 and expands them into a single list .
comment: """
          Takes a string containing ranges of values such as 1-3 and 4,5,6,7 and
          expands them into a single list.
          """$SEP$# expand ranges