<commit_before>import unittest
from flask import Flask, redirect, views
from flask.signals import got_request_exception, signals_available
try:
    from mock import Mock, patch
except:
    # python3
    from unittest.mock import Mock, patch
import flask
import werkzeug
from flask.ext.restful.utils import http_status_message, error_data, unpack
import flask_restful
import flask_restful.fields
from flask_restful import OrderedDict
from json import dumps, loads
#noinspection PyUnresolvedReferences
from nose.tools import assert_equals, assert_true  # you need it for tests in form of continuations
import six


def check_unpack(expected, value):
    assert_equals(expected, value)


def test_unpack():<commit_msg>A little organization of the imports, while I import HTTPException<commit_after>import unittest

from json import dumps, loads

import flask
from flask import Flask, redirect, views
from flask.ext.restful.utils import http_status_message, error_data, unpack
from flask.signals import got_request_exception, signals_available

try:
    from mock import Mock, patch
except:
    # python3
    from unittest.mock import Mock, patch

from nose.tools import assert_equals, assert_true  # you need it for tests in form of continuations

#noinspection PyUnresolvedReferences
import six

import werkzeug
from werkzeug.exceptions import HTTPException

import flask_restful
import flask_restful.fields
from flask_restful import OrderedDict



def check_unpack(expected, value):
    assert_equals(expected, value)


def test_unpack():
{'fraction_non_alphanumeric': 0.04554326610279766, 'fraction_numerical': 0.0013012361743656475, 'mean_word_length': 5.716157205240175, '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': '2530782', 'n_tokens_mistral': 445, 'n_tokens_neox': 424, 'n_words': 160}