<commit_before>from argparse import ArgumentParser
from cufacesearch.ingester.kafka_image_downloader import KafkaImageDownloader, KafkaThreadedImageDownloader
from cufacesearch.ingester.kafka_image_downloader import DaemonKafkaImageDownloader, DaemonKafkaThreadedImageDownloader
from cufacesearch.ingester.kafka_image_downloader import default_prefix
import time

# Should this sccript just be as the main in 'kafka_image_downloader'?

if __name__ == "__main__":

  # Get conf file
  parser = ArgumentParser()
  parser.add_argument("-c", "--conf", dest="conf_file", required=True)
  parser.add_argument("-p", "--prefix", dest="prefix", default=default_prefix)
  parser.add_argument("-d", "--deamon", dest="deamon", action="store_true", default=False)
  parser.add_argument("-t", "--threaded", dest="threaded", action="store_true", default=False)
  parser.add_argument("-w", "--workers", dest="workers", type=int, default=15)
  parser.add_argument("-m", "--max_message", dest="max_message", type=int, default=0) # only for non daemon version
  options = parser.parse_args()<commit_msg>change number of workers to 50<commit_after>from argparse import ArgumentParser
from cufacesearch.ingester.kafka_image_downloader import KafkaImageDownloader, KafkaThreadedImageDownloader
from cufacesearch.ingester.kafka_image_downloader import DaemonKafkaImageDownloader, DaemonKafkaThreadedImageDownloader
from cufacesearch.ingester.kafka_image_downloader import default_prefix
import time

# Should this sccript just be as the main in 'kafka_image_downloader'?

if __name__ == "__main__":

  # Get conf file
  parser = ArgumentParser()
  parser.add_argument("-c", "--conf", dest="conf_file", required=True)
  parser.add_argument("-p", "--prefix", dest="prefix", default=default_prefix)
  parser.add_argument("-d", "--deamon", dest="deamon", action="store_true", default=False)
  parser.add_argument("-t", "--threaded", dest="threaded", action="store_true", default=False)
  #parser.add_argument("-w", "--workers", dest="workers", type=int, default=15)
  parser.add_argument("-w", "--workers", dest="workers", type=int, default=50) # change following repartition
  parser.add_argument("-m", "--max_message", dest="max_message", type=int, default=0) # only for non daemon version
  options = parser.parse_args()
{'fraction_non_alphanumeric': 0.13371080139372823, 'fraction_numerical': 0.004355400696864111, 'mean_word_length': 7.174377224199288, 'pattern_counts': {'":': 2, '<': 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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6875196', 'n_tokens_mistral': 699, 'n_tokens_neox': 704, 'n_words': 158}