<commit_before># -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name:         sfp_accounts`
# Purpose:      Identify the existence of a given acount on various sites.
#
# Author:      <NAME> <<EMAIL>>
#
# Created:     18/02/2015
# Copyright:   (c) <NAME> 2015
# Licence:     GPL
# -------------------------------------------------------------------------------

import time
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent

externals = [
    "YouTube", "Wikipedia", "LinkedIn", "Twitter", "Ebay", "Tumblr", "Pinterest", "Blogger", "Flickr", "Wordpress",
    "DailyMotion", "reddit", "Cnet", "vimeo", "SlideShare", "ThemeForest", "DeviantArt", "LiveJournal", "Yelp",
    "StumbleUpon", "askfm", "Sourceforge", "WikiHow", "soundcloud", "Photobucket", "weebly", "scribd", "ImageShack",
    "Disqus", "Tagged", "tinyurl", "TMZ", "Elance", "Typepad", "foursquare", "steam", "MySpace", "Gawker", "Gamespot",
    "MetaCafe", "LastFM", "hi5", "myfitnesspal", "Delicious", "Dribbble", "Gravatar", "Crunchbase", "FriendFeed",
    "Technorati", "Slashdot", "Metacritic", "uservoice", "BitLy"
]


class sfp_accounts(SpiderFootPlugin):
    """Accounts:Look for possible associated accounts on over 50 websites like Ebay, Slashdot, reddit, etc."""

    # Default options
    opts = {
        "generic": ["root", "abuse", "sysadm", "sysadmin", "noc", "support", "admin",
                    "contact", "help", "flame", "test", "info", "sales", "hostmaster"],
        "ignoredict": True
    }

    # Option descriptions
    optdescs = {
        "generic": "Generic internal accounts to not bother looking up externally.",
        "ignoredict": "Don't bother looking up internal names externally that are just stand-alone first names."
    }

    results = dict()

    def setup(self, sfc, userOpts=dict()):
        self.sf = sfc<commit_msg>Removed a few sources of false positives.<commit_after># -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name:         sfp_accounts`
# Purpose:      Identify the existence of a given acount on various sites.
#
# Author:      <NAME> <<EMAIL>>
#
# Created:     18/02/2015
# Copyright:   (c) <NAME> 2015
# Licence:     GPL
# -------------------------------------------------------------------------------

import time
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent

externals = [
    "YouTube", "Wikipedia", "LinkedIn", "Twitter", "Ebay", "Tumblr", "Pinterest", "Blogger", "Flickr",
    "DailyMotion", "reddit", "Cnet", "vimeo", "SlideShare", "ThemeForest", "DeviantArt", "LiveJournal", "Yelp",
    "StumbleUpon", "askfm", "Sourceforge", "WikiHow", "soundcloud", "Photobucket", "weebly", "scribd", "ImageShack",
    "Disqus", "Tagged", "Elance", "Typepad", "foursquare", "steam", "MySpace", "Gawker", "Gamespot",
    "MetaCafe", "LastFM", "hi5", "myfitnesspal", "Delicious", "Dribbble", "Gravatar", "Crunchbase", "FriendFeed",
    "Technorati", "Slashdot", "Metacritic", "uservoice", "BitLy"
]


class sfp_accounts(SpiderFootPlugin):
    """Accounts:Look for possible associated accounts on over 50 websites like Ebay, Slashdot, reddit, etc."""

    # Default options
    opts = {
        "generic": ["root", "abuse", "sysadm", "sysadmin", "noc", "support", "admin",
                    "contact", "help", "flame", "test", "info", "sales", "hostmaster"],
        "ignoredict": True
    }

    # Option descriptions
    optdescs = {
        "generic": "Generic internal accounts to not bother looking up externally.",
        "ignoredict": "Don't bother looking up internal names externally that are just stand-alone first names."
    }

    results = dict()

    def setup(self, sfc, userOpts=dict()):
        self.sf = sfc
{'fraction_non_alphanumeric': 0.24202478249406803, 'fraction_numerical': 0.008436593725283418, 'mean_word_length': 2.6799224054316197, 'pattern_counts': {'":': 8, '<': 11, '<?xml version=': 0, '>': 11, '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': '4002811', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1151, 'n_words': 322}