def get_user_details(self, response):
        # Build the username with the team $username@$team_url
        # Necessary to get unique names for all of slack
        username = response.get('user')
        if self.setting('USERNAME_WITH_TEAM', True):
            match = re.search(r'//([^.]+)\.slack\.com', response['url'])
            username = '{0}@{1}'.format(username, match.group(1))

        out = {'username': username}
        if 'profile' in response:
            out.update({
                'email': response['profile'].get('email'),
                'fullname': response['profile'].get('real_name'),
                'first_name': response['profile'].get('first_name'),
                'last_name': response['profile'].get('last_name')
            })
        return out
L{Platform.isLinux} can only return C{True} if L{Platform.getType}
dataset/ETHPy150Open omab/python-social-auth/social/backends/slack.py/SlackOAuth2.get_user_details--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_runtime.py/PlatformTests.test_isLinuxConsistency