old_contents: datasets   = ['mushroom', 'pumsb_star', 'retail', 'kosarak']
  thresholds = [        81,          490,      881,      9900]
  k = 100
  
  cmd_template = "./dph data/datasets/{0}.dat r {2} {1} 0.5 0.1 {3} 1000 5 {4}"
  redirect = " > shelves/{0}_sh_{1}_bins_{2}"
  
  for dataset, t in zip(datasets, thresholds):
      for sh in range(1,21):
          for bins in range(1,21):
              if sh * bins > k: continue
              print (cmd_template + redirect).format(dataset, bins,sh, t, k)
  
new_contents: datasets   = ['mushroom', 'retail', 'pumsb_star']#, 'kosarak']
  thresholds = [        81,      881,          490]#,      9900]
  seeds = [149129418924, 2548298598, 3453959835, 4958958, 58929841412,
          621094029095, 750395903, 8593592905, 90358305305, 100035693539]
  k = 100
  
  cmd_template = "./dph data/datasets/{0}.dat r {2} {1} 0.5 0.1 {3} {6} 5 {4} {5}"
  redirect = " > shelves_random/{0}_seed_{5}_sh_{1}_bins_{2}"
  
  for dataset, t in zip(datasets, thresholds):
      for sh in range(1,21):
          for bins in range(1,21):
              if sh * bins > k: continue
              for seed in seeds:
                  print (cmd_template + redirect).format(
                          dataset, bins,sh, t, k, seed, 2 * t)
  
subject: Update run.py