<commit_before>import sys
import os
import unittest
import platform

from test import test_support

class PlatformTest(unittest.TestCase):
    def test_architecture(self):
        res = platform.architecture()

    def test_machine(self):
        res = platform.machine()

    def test_node(self):
        res = platform.node()<commit_msg>Added the test for issue3762.<commit_after>import sys
import os
import unittest
import platform
import subprocess

from test import test_support

class PlatformTest(unittest.TestCase):
    def test_architecture(self):
        res = platform.architecture()

    if hasattr(os, "symlink"):
        def test_architecture_via_symlink(self): # issue3762
            def get(python):
                cmd = [python, '-c',
                    'import platform; print platform.architecture()']
                p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
                return p.communicate()
            symlink = os.path.abspath(test_support.TESTFN)
            os.symlink(sys.executable, symlink)
            try:
                self.assertEqual(get(sys.executable), get(symlink))
            finally:
                os.remove(symlink)

    def test_machine(self):
        res = platform.machine()

    def test_node(self):
        res = platform.node()
{'fraction_non_alphanumeric': 0.0919629057187017, 'fraction_numerical': 0.0061823802163833074, 'mean_word_length': 2.490566037735849, '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': '1519151', 'n_tokens_mistral': 376, 'n_tokens_neox': 357, 'n_words': 86}