<commit_before>from hashlib import sha1
from time import time
import os
from tempfile import mkstemp

from messytables.any import AnyTableSet
from messytables import headers_guess, headers_processor, \
        offset_processor

from nomenklatura.core import s3, app, db, celery
from nomenklatura.exc import NotFound
from nomenklatura.util import flush_cache
from nomenklatura.model import Dataset, Entity, Alias, Account


def get_bucket():
    return s3.create_bucket(app.config['S3_BUCKET'])<commit_msg>Get bucket, don't create it. <commit_after>from hashlib import sha1
from time import time
import os
from tempfile import mkstemp

from messytables.any import AnyTableSet
from messytables import headers_guess, headers_processor, \
        offset_processor

from nomenklatura.core import s3, app, db, celery
from nomenklatura.exc import NotFound
from nomenklatura.util import flush_cache
from nomenklatura.model import Dataset, Entity, Alias, Account


def get_bucket():
    return s3.get_bucket(app.config['S3_BUCKET'])
{'fraction_non_alphanumeric': 0.05767350928641251, 'fraction_numerical': 0.007820136852394917, 'mean_word_length': 5.606451612903226, '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': '888793', 'n_tokens_mistral': 311, 'n_tokens_neox': 307, 'n_words': 104}