<commit_before># This file takes a single seismic data file and tries to analyze it
#====================================================================

# Import libraries
import glob
from obspy.core import read

# Read miniSEED data file
st = read("BDM.BK.LHE.00.D.2015.259.225431",format="mSEED")
# Print stream. A stream is an object that contains all data from a miniSEED file.
# A stream is a collection of traces.
print("Printing stream")
print(st)
# Print length of stream. This is equal to the number of traces in the data file.
print("Length of stream")
print(len(st))
# Print elements of stream. This stream has only 1 trace.
print("First element of stream")
tr = st[0]
print(tr)
# Access meta-data
print ("Accessing meta-data")
print(tr.stats)
# Access waveform data
print ("Accessing waveform data")
print(tr.data)
print ("Length of waveform")
print(len(tr.data))<commit_msg>User input tweaks<commit_after># This file takes a single seismic data file and tries to analyze it
#====================================================================

# Import libraries
import glob
from obspy.core import read

# Read miniSEED data file
input_file = input("Enter mSEED file name:")
# st = read(input_file,format="mSEED")
st = read(input_file)
# Print stream. A stream is an object that contains all data from a miniSEED file.
# A stream is a collection of traces.
print("Printing stream")
print(st)
# Print length of stream. This is equal to the number of traces in the data file.
print("Length of stream")
print(len(st))
# Print elements of stream. This stream has only 1 trace.
print("First element of stream")
tr = st[0]
print(tr)
# Access meta-data
print ("Accessing meta-data")
print(tr.stats)
# Access waveform data
print ("Accessing waveform data")
print(tr.data)
print ("Length of waveform")
print(len(tr.data))
{'fraction_non_alphanumeric': 0.16794310722100655, 'fraction_numerical': 0.010393873085339168, 'mean_word_length': 5.350694444444445, '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': '7295313', 'n_tokens_mistral': 545, 'n_tokens_neox': 514, 'n_words': 226}