original_docstring:  Transform the provided string using babel.transform 
docstring: Transform the provided string using babel.transform
docstring_tokens: Transform the provided string using babel . transform
code: def babel_transform(es_string):
      """ Transform the provided string using babel.transform """
  
      path_to_babel = os.path.join(os.path.dirname(__file__), '..', 'tests',
                                   'fixtures', 'babel.js')
  
      babel_source = open(path_to_babel, "r").read()
  
      # Initializes PyMiniRacer
      ctx = py_mini_racer.MiniRacer()
  
      # Parse babel
      ctx.eval("""var self = this; %s """ % babel_source)
  
      # Transform stuff :)
      val = "babel.transform(`%s`)['code']" % es_string
      res = ctx.eval(val)
      return res
code_tokens: def babel_transform ( es_string ) : path_to_babel = os . path . join ( os . path . dirname ( __file__ ) , '..' , 'tests' , 'fixtures' , 'babel.js' ) babel_source = open ( path_to_babel , "r" ) . read ( ) ctx = py_mini_racer . MiniRacer ( ) ctx . eval ( """var self = this; %s """ % babel_source ) val = "babel.transform(`%s`)['code']" % es_string res = ctx . eval ( val ) return res
short_docstring: Transform the provided string using babel.transform
short_docstring_tokens: Transform the provided string using babel . transform
comment: """ Transform the provided string using babel.transform """$SEP$# Initializes PyMiniRacer$SEP$# Parse babel$SEP$# Transform stuff :)