<commit_before>from urllib import urlopen
from json import loads
from sys import argv 
import dateutil.parser as dateparser
import logging

# plugin your username and access_token (Token can be get and 
# modified in the Explorer's Get Access Token button):
# https://graph.facebook.com/USER_NAME/photos?type=uploaded&fields=source&access_token=ACCESS_TOKEN_HERE
FACEBOOK_USER_ID = "10203552316662505"
FACEBOOK_ACCESS_TOKEN = "<KEY>"

def get_logger(label='lvm_cli', level='INFO'):
    """
    Return a generic logger.
    """
    format = '%(asctime)s - %(levelname)s - %(message)s'
    logging.basicConfig(format=format)
    logger = logging.getLogger(label)
    logger.setLevel(getattr(logging, level))
    return logger

def urlrequest(url):
    """
    Make a url request
    """
    req = urlopen(url)<commit_msg>Access token<commit_after>from urllib import urlopen
from json import loads
from sys import argv 
import dateutil.parser as dateparser
import logging

# plugin your username and access_token (Token can be get and 
# modified in the Explorer's Get Access Token button):
# https://graph.facebook.com/USER_NAME/photos?type=uploaded&fields=source&access_token=ACCESS_TOKEN_HERE
FACEBOOK_USER_ID = "YOUR_USER_ID"
FACEBOOK_ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

def get_logger(label='lvm_cli', level='INFO'):
    """
    Return a generic logger.
    """
    format = '%(asctime)s - %(levelname)s - %(message)s'
    logging.basicConfig(format=format)
    logger = logging.getLogger(label)
    logger.setLevel(getattr(logging, level))
    return logger

def urlrequest(url):
    """
    Make a url request
    """
    req = urlopen(url)
{'fraction_non_alphanumeric': 0.1070559610705596, 'fraction_numerical': 0.010340632603406326, 'mean_word_length': 4.595238095238095, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '4501646', 'n_tokens_mistral': 536, 'n_tokens_neox': 524, 'n_words': 134}