<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import predict
import time
from time import strftime
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import sys, os
import cfg

configFile = 'autowx.ini'

if len(sys.argv) > 2:
    print("Usage: {} [autowx.ini]".format(sys.argv[0]))
    exit(-1)
elif len(sys.argv) == 2:
    configFile = sys.argv[1]

config = cfg.get(configFile)

# Config
passImgDir = config.get("DIRS", 'passesImgs')
tleFileName = os.path.join(config.get('DIRS', 'tle'), config.get('DIRS', 'tleFile'))
elNOAA = config.get('QTH', 'minElev')
elMETEOR = config.get('QTH', 'minElevMeteor')
qth = (config.getfloat('QTH', 'lat'), config.getfloat('QTH', 'lon'))

# The rest
NOAA15 = []
NOAA18 = []
NOAA19 = []
METEORM2 = []
birds = [NOAA15, NOAA18, NOAA19, METEORM2]
g = []

tlefile = open(tleFileName, 'r')
tledata = tlefile.readlines()
tlefile.close()

for i, line in enumerate(tledata):
    if "NOAA 15" in line:
        for l in tledata[i:i + 3]: NOAA15.append(l.strip('\r\n').rstrip()),
for i, line in enumerate(tledata):<commit_msg>tledraw fix: missing altitude, elevations from config should be int not str<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import predict
import time
from time import strftime
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import sys, os
import cfg

configFile = 'autowx.ini'

if len(sys.argv) > 2:
    print("Usage: {} [autowx.ini]".format(sys.argv[0]))
    exit(-1)
elif len(sys.argv) == 2:
    configFile = sys.argv[1]

config = cfg.get(configFile)

# Config
passImgDir = config.get("DIRS", 'passesImgs')
tleFileName = os.path.join(config.get('DIRS', 'tle'), config.get('DIRS', 'tleFile'))
elNOAA = config.getint('QTH', 'minElev')
elMETEOR = config.getint('QTH', 'minElevMeteor')
qth = (config.getfloat('QTH', 'lat'), config.getfloat('QTH', 'lon'), config.getint('QTH', 'alt'))

# The rest
NOAA15 = []
NOAA18 = []
NOAA19 = []
METEORM2 = []
birds = [NOAA15, NOAA18, NOAA19, METEORM2]
g = []

tlefile = open(tleFileName, 'r')
tledata = tlefile.readlines()
tlefile.close()

for i, line in enumerate(tledata):
    if "NOAA 15" in line:
        for l in tledata[i:i + 3]: NOAA15.append(l.strip('\r\n').rstrip()),
for i, line in enumerate(tledata):
{'fraction_non_alphanumeric': 0.17902037277850022, 'fraction_numerical': 0.021673168617251843, 'mean_word_length': 4.615571776155718, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6380261', 'n_tokens_mistral': 935, 'n_tokens_neox': 897, 'n_words': 216}