<commit_before># -*- coding: utf-8 -*-

from espnff import League
import datetime
import numpy as np
from flask import Flask, render_template
app = Flask(__name__)

# Logic for web app. Look into breaking this into modules later.
league_id = 646859
year = 2017
league = League(league_id,year)
team1 = league.teams[0]
powerRankings= league.power_rankings(week=2)
topTeamRank = str(powerRankings[0:][1])
topTeamRank = topTeamRank[5:-1]

points= []
teams = []

pRanks = np.asarray(powerRankings)

# Custom date time filter
@app.template_filter()
def datetimefilter(value, format='%Y/%m/%d %H:%M'):
    """convert a datetime to a different format"""<commit_msg>Converted power ranking list into string array hoping to split elements into points and team name<commit_after># -*- coding: utf-8 -*-

from espnff import League
import datetime
import numpy as np
from flask import Flask, render_template
app = Flask(__name__)

# Logic for web app. Look into breaking this into modules later.
league_id = 646859
year = 2017
league = League(league_id,year)
team1 = league.teams[0]
powerRankings= league.power_rankings(week=2)
topTeamRank = str(powerRankings[0:][1])
topTeamRank = topTeamRank[5:-1]

points= []
teams = []

pRanks = np.asarray(powerRankings, str)

# Custom date time filter
@app.template_filter()
def datetimefilter(value, format='%Y/%m/%d %H:%M'):
    """convert a datetime to a different format"""
{'fraction_non_alphanumeric': 0.11903064861012116, 'fraction_numerical': 0.02565930149679259, 'mean_word_length': 5.352941176470588, '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': '6084000', 'n_tokens_mistral': 477, 'n_tokens_neox': 450, 'n_words': 145}