<commit_before>import openravepy

def runchomp(mod, robot=None, adofgoal=None, n_iter=None, lambda_=None):
   cmd = 'runchomp'
   if robot is not None:
      if hasattr(robot,'GetName')
         cmd += ' robot %s' % robot.GetName()
      else:
         cmd += ' robot %s' % robot
   if adofgoal is not None:
      cmd += ' adofgoal %d %s' % (len(adofgoal), ' '.join([str(v) for v in goal_ik]))
   if n_iter is not None:
      cmd += ' n_iter %d' % n_iter
   if lambda_ is not None:
      cmd += ' lambda %0.04f' % lambda_
   traj_data = mod.SendCommand(cmd)
   return openravepy.RaveCreateTrajectory(mod.GetEnv(),'').deserialize(traj_data)<commit_msg>Fixing some syntax errors<commit_after>import openravepy

def runchomp(mod, robot=None, adofgoal=None, n_iter=None, lambda_=None):
   cmd = 'runchomp'
   if robot is not None:
      if hasattr(robot,'GetName'):
         cmd += ' robot %s' % robot.GetName()
      else:
         cmd += ' robot %s' % robot
   if adofgoal is not None:
      cmd += ' adofgoal %d %s' % (len(adofgoal), ' '.join([str(v) for v in adofgoal]))
   if n_iter is not None:
      cmd += ' n_iter %d' % n_iter
   if lambda_ is not None:
      cmd += ' lambda %0.04f' % lambda_
   traj_data = mod.SendCommand(cmd)
   return openravepy.RaveCreateTrajectory(mod.GetEnv(),'').deserialize(traj_data)
{'fraction_non_alphanumeric': 0.1405775075987842, 'fraction_numerical': 0.004559270516717325, 'mean_word_length': 3.141509433962264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '500376', 'n_tokens_mistral': 496, 'n_tokens_neox': 485, 'n_words': 128}