<commit_before>import unittest

from jira.client import JIRA
from jira.exceptions import JIRAError
from jira.resources import Resource

class UniversalResourceTests(unittest.TestCase):

    def setUp(self):
        self.jira = JIRA(basic_auth=('admin', 'admin'))

    def test_universal_find_existing_resource(self):
        resource = self.jira.find('issue/{0}', 'BULK-1')
        issue = self.jira.issue('BULK-1')
        self.assertEqual(resource.self, issue.self)
        self.assertEqual(resource.key, issue.key)

    def test_universal_find_custom_resource(self):
        options = {
            'server': 'http://not-a-machine.net:2442/notjira',
            'rest_path': 'notrest',
            'rest_api_version': '666'
        }
        resource = Resource('nope/{0}', options)
        self.assertEqual('http://not-a-machine.net:2442/notjira/rest/notrest/666/nope/666', resource._url(('666',)))


class ApplicationPropertiesTests(unittest.TestCase):<commit_msg>- kill unused import<commit_after>import unittest

from jira.client import JIRA
from jira.resources import Resource

class UniversalResourceTests(unittest.TestCase):

    def setUp(self):
        self.jira = JIRA(basic_auth=('admin', 'admin'))

    def test_universal_find_existing_resource(self):
        resource = self.jira.find('issue/{0}', 'BULK-1')
        issue = self.jira.issue('BULK-1')
        self.assertEqual(resource.self, issue.self)
        self.assertEqual(resource.key, issue.key)

    def test_universal_find_custom_resource(self):
        options = {
            'server': 'http://not-a-machine.net:2442/notjira',
            'rest_path': 'notrest',
            'rest_api_version': '666'
        }
        resource = Resource('nope/{0}', options)
        self.assertEqual('http://not-a-machine.net:2442/notjira/rest/notrest/666/nope/666', resource._url(('666',)))


class ApplicationPropertiesTests(unittest.TestCase):
{'fraction_non_alphanumeric': 0.13948610382800208, 'fraction_numerical': 0.025170424750917672, 'mean_word_length': 3.3363636363636364, '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': '451160', 'n_tokens_mistral': 632, 'n_tokens_neox': 598, 'n_words': 94}