<commit_before>import sublime
import sublime_plugin
import os
import sys
import json
import functools
import webbrowser
import tempfile
import traceback
import threading
import shutil

from .request import *
from .helpers import *
settings = None


def plugin_loaded():
    global settings
    settings = sublime.load_settings('Gist.sublime-settings')

    if settings.get('max_gists') > 100:
        settings.set('max_gists', 100)  # the URLs are not updated.
        sublime.status_message("Gist: GitHub API does not support a value of higher than 100")

    MAX_GISTS = '?per_page=%d' % settings.get('max_gists')

    api_url = settings.get('api_url')  # Should add validation?<commit_msg>organize import statements, removed import *<commit_after>import functools
import json
import os
import shutil
import tempfile
import threading
import traceback
import webbrowser

import sublime
import sublime_plugin
from .helpers import gistify_view, set_syntax, gists_filter, ungistify_view
from .request import api_request, MissingCredentialsException

settings = None


def plugin_loaded():
    global settings
    settings = sublime.load_settings('Gist.sublime-settings')

    if settings.get('max_gists') > 100:
        settings.set('max_gists', 100)  # the URLs are not updated.
        sublime.status_message("Gist: GitHub API does not support a value of higher than 100")

    MAX_GISTS = '?per_page=%d' % settings.get('max_gists')

    api_url = settings.get('api_url')  # Should add validation?
{'fraction_non_alphanumeric': 0.08283233132932531, 'fraction_numerical': 0.012024048096192385, 'mean_word_length': 4.568773234200743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1926355', 'n_tokens_mistral': 484, 'n_tokens_neox': 444, 'n_words': 140}