<commit_before>import rethinkdb as r
import spotipy as spot
import spotipy.oauth2 as sp
import webbrowser
API_KEY = 'a987eda1da2e4858a71797b672dd59f5'
API_SECRET = '<KEY>'
RETURN_URL = 'http://localhost:8000'
PERMISSIONS = 'playlist-read-private playlist-read-collaborative user-follow-read user-library-read user-read-birthdate user-read-email'

#------------------------------------------------------------------------------------
authentication = sp.SpotifyOAuth(API_KEY, API_SECRET, RETURN_URL, scope=PERMISSIONS)
webbrowser.open(authentication.get_authorize_url())

#------------------------------------------------------------------------------------
#code = authentication.parse_response_code('Directory listing for /?code=AQAve84F0e7kpQ1XeIboAeMHm72oBVk0G3wlUf4TSROX8acaxA40peivCveQp05A1DNY5faEybx3m8TOfWdq6Vl_55A9KN--8iQ2BqwCkM4BRIG7p-Osz43_1hnjJscaj_6dPqexZ5cHajEoqqdSx50vAZzRWRNxiSDzDvT5hK1hqSSjBJTTV172gvgVorKZ98HflN54PurxDkpx-Wpzgp47Gj1bCPNA9TxGoHXDhVLYbO4et6RdsPWqgkNBHjoow2ZblNi-0PAu4bxdBdP9W2m5J5KIbl1Rt74cKX-fH5q5e5ZCBiso3ZY5EJMh9RfwxWCvOQAxt7cpG5DFlTacwu5dI5k8dXu4W1E')
#token = authentication.get_access_token(code)

#------------------------------------------------------------------------------------
#application = spot.Spotify(auth='<PASSWORD>NmRRdiRI16kkqPwDL3lXW1FO2Z2M7T4Ki6IuyjARjT104w6QUnZ5NexZelO7nSkQv1ThUs_-jC_xPbaQig0AnJ93lWGxHK0MfJxrmtwWYFjUWgKbCaMzavkWXALIf6eF6fFcRnZcUhLUbnh0Cifu2-Me59UI388ARdVvY_ba5woQ')
#r.connect("localhost", 28015).repl()
#r.db("test").table_create('user_profiles').run();
#r.table('user_profiles').insert().run();<commit_msg>api-call<commit_after>import rethinkdb as r
import spotipy as spot
import spotipy.oauth2 as sp
import webbrowser
API_KEY = 'a987eda1da2e4858a71797b672dd59f5'
API_SECRET = '<KEY>'
RETURN_URL = 'http://localhost:8000'
PERMISSIONS = 'playlist-read-private playlist-read-collaborative user-follow-read user-library-read user-read-birthdate user-read-email'

#------------------------------------------------------------------------------------
authentication = sp.SpotifyOAuth(API_KEY, API_SECRET, RETURN_URL, scope=PERMISSIONS)
webbrowser.open(authentication.get_authorize_url())

#------------------------------------------------------------------------------------
#code = authentication.parse_response_code('Directory listing for /?code=AQAve84F0e7kpQ1XeIboAeMHm72oBVk0G3wlUf4TSROX8acaxA40peivCveQp05A1DNY5faEybx3m8TOfWdq6Vl_55A9KN--8iQ2BqwCkM4BRIG7p-Osz43_1hnjJscaj_6dPqexZ5cHajEoqqdSx50vAZzRWRNxiSDzDvT5hK1hqSSjBJTTV172gvgVorKZ98HflN54PurxDkpx-Wpzgp47Gj1bCPNA9TxGoHXDhVLYbO4et6RdsPWqgkNBHjoow2ZblNi-0PAu4bxdBdP9W2m5J5KIbl1Rt74cKX-fH5q5e5ZCBiso3ZY5EJMh9RfwxWCvOQAxt7cpG5DFlTacwu5dI5k8dXu4W1E')
#token = authentication.get_access_token(code)

#------------------------------------------------------------------------------------
#application = spot.Spotify(auth='<KEY>')
#print application._get(https://api.spotify.com/v1/me)
#r.connect("localhost", 28015).repl()
#r.db("test").table_create('user_profiles').run();
#r.table('user_profiles').insert().run();
{'fraction_non_alphanumeric': 0.24942415268180324, 'fraction_numerical': 0.07732806844356696, 'mean_word_length': 3.2998585572843, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '4175799', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1256, 'n_words': 93}