<commit_before>import time
import argparse
import subprocess
import os

from src import SPclean

import pandas as pd
pd.options.mode.chained_assignment = None

import warnings
warnings.filterwarnings("error")

warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")


def parser():
  '''
  Command-line options
  '''
  parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,description="Search for interesting single pulses in a dataset. See the README for detailed instructions.")
  parser.add_argument('filename', help="Name of the .singlepulse file or HDF5 database.")
  parser.add_argument('-meta_data', help="Name of the .inf file from PRESTO.", default=None)

  parser.add_argument('-no_search', help="Do not search for pulses and candidates.", action='store_true')
  parser.add_argument('-no_store', help="Do not store the output into an HDF5 database.", action='store_true')
  parser.add_argument('-store_name', help="Filename of the output HDF5 database.", default='SinglePulses.hdf5')
  parser.add_argument('-no_plot', help="Do not plot the diagnostics.", action='store_true')
  parser.add_argument('-plot_name', help="Name of the diagnostic plot file.", default='diagnostics.pdf')
  parser.add_argument('-no_filter', help="Do not filter pulses.", action='store_true')
  
  parser.add_argument('-F_range', help="Frequency range of the observation.", type=float, nargs=2)
  parser.add_argument('-t_range', help="Time range to search (seconds).", type=float, nargs=2)<commit_msg>Warning bug fixed<commit_after>import time
import argparse
import subprocess
import os

from src import SPclean

import pandas as pd
pd.options.mode.chained_assignment = None

import warnings
#warnings.filterwarnings("error")
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")


def parser():
  '''
  Command-line options
  '''
  parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,description="Search for interesting single pulses in a dataset. See the README for detailed instructions.")
  parser.add_argument('filename', help="Name of the .singlepulse file or HDF5 database.")
  parser.add_argument('-meta_data', help="Name of the .inf file from PRESTO.", default=None)

  parser.add_argument('-no_search', help="Do not search for pulses and candidates.", action='store_true')
  parser.add_argument('-no_store', help="Do not store the output into an HDF5 database.", action='store_true')
  parser.add_argument('-store_name', help="Filename of the output HDF5 database.", default='SinglePulses.hdf5')
  parser.add_argument('-no_plot', help="Do not plot the diagnostics.", action='store_true')
  parser.add_argument('-plot_name', help="Name of the diagnostic plot file.", default='diagnostics.pdf')
  parser.add_argument('-no_filter', help="Do not filter pulses.", action='store_true')
  
  parser.add_argument('-F_range', help="Frequency range of the observation.", type=float, nargs=2)
  parser.add_argument('-t_range', help="Time range to search (seconds).", type=float, nargs=2)
{'fraction_non_alphanumeric': 0.1267123287671233, 'fraction_numerical': 0.0037359900373599006, 'mean_word_length': 6.335616438356165, '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': '7001238', 'n_tokens_mistral': 941, 'n_tokens_neox': 917, 'n_words': 263}