<commit_before>import glob as python_standard_glob
import os
import shutil
import sys
import tempfile

sys.path.insert(0, ".")
import unittest
from coalib.parsing.Glob import glob, iglob, _Selector, _iter_or_combinations


class GlobTest(unittest.TestCase):
    def setUp(self):
        self.tmp_dir = tempfile.mkdtemp(prefix='coala_import_test_dir_')
        self.tmp_subdir = tempfile.mkdtemp(prefix='pref',
                                           dir=self.tmp_dir)
        self.tmp_subdir2 = tempfile.mkdtemp(prefix='random',
                                            dir=self.tmp_subdir)
        self.tmp_subdir3 = tempfile.mkdtemp(prefix='random2',
                                            dir=self.tmp_subdir2)
        (self.testfile1, self.testfile1_path) = tempfile.mkstemp(
            suffix='.py',
            prefix='testfile1_',
            dir=self.tmp_subdir2)
        (self.testfile2, self.testfile2_path) = tempfile.mkstemp(
            suffix='.c',
            prefix='testfile2_',
            dir=self.tmp_subdir2)
        (self.testfile3, self.testfile3_path) = tempfile.mkstemp(<commit_msg>GlobTest: Correct import order<commit_after>import glob as python_standard_glob
import os
import shutil
import sys
import tempfile
import unittest

sys.path.insert(0, ".")
from coalib.parsing.Glob import glob, iglob, _Selector, _iter_or_combinations


class GlobTest(unittest.TestCase):
    def setUp(self):
        self.tmp_dir = tempfile.mkdtemp(prefix='coala_import_test_dir_')
        self.tmp_subdir = tempfile.mkdtemp(prefix='pref',
                                           dir=self.tmp_dir)
        self.tmp_subdir2 = tempfile.mkdtemp(prefix='random',
                                            dir=self.tmp_subdir)
        self.tmp_subdir3 = tempfile.mkdtemp(prefix='random2',
                                            dir=self.tmp_subdir2)
        (self.testfile1, self.testfile1_path) = tempfile.mkstemp(
            suffix='.py',
            prefix='testfile1_',
            dir=self.tmp_subdir2)
        (self.testfile2, self.testfile2_path) = tempfile.mkstemp(
            suffix='.c',
            prefix='testfile2_',
            dir=self.tmp_subdir2)
        (self.testfile3, self.testfile3_path) = tempfile.mkstemp(
{'fraction_non_alphanumeric': 0.09977827050997783, 'fraction_numerical': 0.013303769401330377, 'mean_word_length': 2.1596638655462184, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1663656', 'n_tokens_mistral': 700, 'n_tokens_neox': 693, 'n_words': 106}