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

from base64 import b64encode
from bs4 import BeautifulSoup
import datetime
import os
from prettyprint import pp_str
import re
import time
from urllib import urlretrieve
from urllib2 import Request, urlopen

class RadikoPlayer:
    # Radiko urls
    player_url = 'http://radiko.jp/player/swf/player_3.0.0.01.swf'
    auth1_fms_url = 'https://radiko.jp/v2/api/auth1_fms'
    auth2_fms_url = 'https://radiko.jp/v2/api/auth2_fms'
    stream_xml_url = 'http://radiko.jp/v2/station/stream/'
    list_xml_url = 'http://radiko.jp/v2/station/list/'

    # local files
    tmp_dir = '/tmp/radiko_player'
    player_file = tmp_dir + '/player.swf'
    key_file = tmp_dir + '/authkey.png'
    partial_key_file = tmp_dir + '/partial_key'

    # local commands
    swfextract_path = '/usr/local/bin/swfextract'
    rtmpdump_path = '/usr/local/bin/rtmpdump'
    ffmpeg_path = '/usr/local/bin/ffmpeg'

    # stream parameters
    stream_url_parts = []
    auth_token = ''
    region = ''<commit_msg>rename constant<commit_after>#!/usr/bin/env python
#-*-coding:utf-8-*-

from base64 import b64encode
from bs4 import BeautifulSoup
import datetime
import os
from prettyprint import pp_str
import re
import time
from urllib import urlretrieve
from urllib2 import Request, urlopen

class RadikoPlayer:
    # Radiko urls
    player_url = 'http://radiko.jp/player/swf/player_3.0.0.01.swf'
    auth1_fms_url = 'https://radiko.jp/v2/api/auth1_fms'
    auth2_fms_url = 'https://radiko.jp/v2/api/auth2_fms'
    stream_xml_url = 'http://radiko.jp/v2/station/stream/'
    list_xml_url = 'http://radiko.jp/v2/station/list/'

    # local files
    tmp_dir = '/tmp/radikor'
    player_file = tmp_dir + '/player.swf'
    key_file = tmp_dir + '/authkey.png'
    partial_key_file = tmp_dir + '/partial_key'

    # local commands
    swfextract_path = '/usr/local/bin/swfextract'
    rtmpdump_path = '/usr/local/bin/rtmpdump'
    ffmpeg_path = '/usr/local/bin/ffmpeg'

    # stream parameters
    stream_url_parts = []
    auth_token = ''
    region = ''
{'fraction_non_alphanumeric': 0.12620423892100194, 'fraction_numerical': 0.019267822736030827, 'mean_word_length': 3.309128630705394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '3706123', 'n_tokens_mistral': 809, 'n_tokens_neox': 785, 'n_words': 145}