<commit_before># -*- coding: utf-8 -*-
# calculate Sun longitude according to Paul Schlyter formulas
from trigon import *
from planets import Planet
sun = Planet('Sun', 1990, 4, 19)
print sun.position()
moon = Planet('Moon', 1990, 4, 19)
print moon.position()
mercury = Planet('Mercury', 1990, 4, 19)
print mercury.position()
venus = Planet('Venus', 1990, 4, 19)
print venus.position()
mars = Planet('Mars', 1990, 4, 19)
print mars.position()
jupiter = Planet('Jupiter', 1990, 4, 19)
print jupiter.position()
saturn = Planet('Saturn', 1990, 4, 19)
print saturn.position()
uranus = Planet('Uranus', 1990, 4, 19)
print uranus.position()
neptune = Planet('Neptune', 1990, 4, 19)
print neptune.position()
pluto = Planet('Pluto', 1990, 4, 19)
print pluto.position()
<commit_msg>Written test.py in a more pythonic way<commit_after># -*- coding: utf-8 -*-
# calculate Sun longitude according to Paul Schlyter formulas
from trigon import *
from planets import Planet
year, month, day = (1990, 4, 19)
for planets in ('Sun', 'Moon', 'Mercury', 'Venus', 'Mars',
               'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Pluto'):
    
    planet = Planet(planets, year, month, day).position()
    print planets, planet

{'fraction_non_alphanumeric': 0.15575807787903895, 'fraction_numerical': 0.06545153272576636, 'mean_word_length': 4.752380952380952, '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': '5113715', 'n_tokens_mistral': 497, 'n_tokens_neox': 398, 'n_words': 139}