<commit_before>#!/usr/bin/python
import os,sys
home_dir =os.getenv("HOME")
#print home_dir
sys.path.append(home_dir + "/drc/software/build/lib/python2.7/site-packages")
sys.path.append(home_dir + "/drc/software/build/lib/python2.7/dist-packages")

import lcm
from bot_core.pose_t import pose_t

#print 'Argument List:', str(sys.argv)
if len(sys.argv)>1:
  times = float(sys.argv[1])
else:
  print 'No mode specified!'
  times= 1.0

#times = 1.0/20.0
if (times > 1.0):
  print "ignoring fraction quicker than 1 - can't do miracles"
  times=1.0
val = (1/ float(times) )-1

msg = pose_t()
msg.utime = 12345
msg.pos = ( val/20.0, 0, 0)
msg.orientation = (1, 0, 0, 0)

lc = lcm.LCM()
lc.publish("GAZEBO_RATESET", msg.encode())
print "Commanding simulator to run at %f times real time (tops)" % times
<commit_msg>send rate limint working again<commit_after>#!/usr/bin/python
import os,sys
home_dir =os.getenv("HOME")
#print home_dir
sys.path.append(home_dir + "/drc/software/build/lib/python2.7/site-packages")
sys.path.append(home_dir + "/drc/software/build/lib/python2.7/dist-packages")

import lcm
from bot_core.pose_t import pose_t

#print 'Argument List:', str(sys.argv)
if len(sys.argv)>1:
  times = float(sys.argv[1])
else:
  print 'No mode specified!'
  times= 1.0

#times = 1.0/20.0
if (times > 1.0):
  print "ignoring fraction quicker than 1 - can't do miracles"
  times=1.0
val = (1/ float(times) )-1

msg = pose_t()
msg.utime = 12345
msg.pos = ( val, 0, 0)
msg.orientation = (1, 0, 0, 0)

lc = lcm.LCM()
lc.publish("GAZEBO_RATESET", msg.encode())
print "Commanding simulator to run at %f times real time (tops)" % times

{'fraction_non_alphanumeric': 0.16359163591635917, 'fraction_numerical': 0.03997539975399754, 'mean_word_length': 4.231511254019293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3018310', 'n_tokens_mistral': 689, 'n_tokens_neox': 645, 'n_words': 164}