コード例 #1
0
    def __init__(self, *argv, **kwargs):
        from Tribler.community.privatesocial.community import PoliSocialCommunity
        from Tribler.community.privatesemantic.community import PSI_OVERLAP
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = PoliSocialCommunity

        self.friends = set()
        self.not_connected_friends = set()
        self.foafs = set()
        self.not_connected_foafs = set()

        self.peercache = False
        self.nocache = False
        self.reconnect_to_friends = False
        self._mypref_db = None

        self.monitor_friends_lc = None
        self.prev_scenario_statistics = {}
        self.prev_scenario_debug = {}

        self.friendhashes = {}
        self.friendiphashes = {}
        self.foafiphashes = {}

        self.set_community_kwarg('integrate_with_tribler', False)
        self.set_community_kwarg('encryption', False)
        self.set_community_kwarg('max_prefs', 100)
        self.set_community_kwarg('max_fprefs', 100)
        self.set_community_kwarg('psi_mode', PSI_OVERLAP)
        self.set_community_kwarg('log_text', self.log_text)
コード例 #2
0
    def __init__(self, *argv, **kwargs):
        from Tribler.community.privatesearch.community import PoliSearchCommunity

        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = PoliSearchCommunity

        self.manual_connect = False
        self.random_connect = False
        self.bootstrap_percentage = 1.0
        self.late_join = 0
        self.do_search = 1000
        self.search_limit = sys.maxint
        self.search_spacing = 15.0

        self.did_reply = set()
        self.test_set = set()
        self.test_reply = defaultdict(list)

        self.taste_buddies = {}
        self.not_connected_taste_buddies = set()
        self.file_availability = defaultdict(list)

        self.nr_search = 0

        self.community_kwargs['integrate_with_tribler'] = False
        self.community_kwargs['log_searches'] = self.log_searches
コード例 #3
0
ファイル: social_client.py プロジェクト: corpaul/gumby
    def __init__(self, *argv, **kwargs):
        from Tribler.community.privatesocial.community import PoliSocialCommunity
        from Tribler.community.privatesemantic.community import PSI_OVERLAP
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = PoliSocialCommunity

        self.friends = set()
        self.not_connected_friends = set()
        self.foafs = set()
        self.not_connected_foafs = set()

        self.peercache = False
        self.nocache = False
        self.reconnect_to_friends = False
        self._mypref_db = None

        self.monitor_friends_lc = None
        self.prev_scenario_statistics = {}
        self.prev_scenario_debug = {}

        self.friendhashes = {}
        self.friendiphashes = {}
        self.foafiphashes = {}

        self.set_community_kwarg('integrate_with_tribler', False)
        self.set_community_kwarg('encryption', False)
        self.set_community_kwarg('max_prefs', 100)
        self.set_community_kwarg('max_fprefs', 100)
        self.set_community_kwarg('psi_mode', PSI_OVERLAP)
        self.set_community_kwarg('log_text', self.log_text)
コード例 #4
0
ファイル: metadata_client.py プロジェクト: corpaul/gumby
    def __init__(self, *argv, **kwargs):
        from Tribler.community.metadata.community import MetadataCommunity
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = MetadataCommunity

        self.log_statistics_lc = None
        self.prev_scenario_statistics = {}

        self.set_community_kwarg('integrate_with_tribler', False)
コード例 #5
0
    def __init__(self, *argv, **kwargs):
        from Tribler.community.allchannel.community import AllChannelCommunity
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = AllChannelCommunity
        self.my_channel = None
        self.joined_community = None
        self.torrentindex = 1

        self.set_community_kwarg('integrate_with_tribler', False)
コード例 #6
0
ファイル: allchannel_client.py プロジェクト: LipuFei/gumby
    def __init__(self, *argv, **kwargs):
        from Tribler.community.allchannel.community import AllChannelCommunity
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = AllChannelCommunity
        self.my_channel = None
        self.joined_community = None
        self.torrentindex = 1

        self.set_community_kwarg('integrate_with_tribler', False)
コード例 #7
0
    def __init__(self, *argv, **kwargs):
        from dispersy.discovery.community import DiscoveryCommunity
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = DiscoveryCommunity

        self.friends = set()
        self.preferences = set()

        self.set_community_kwarg('max_prefs', sys.maxint)
        self.set_community_kwarg('max_tbs', 25)

        self.monitor_friends_lc = None
        self._prev_scenario_statistics = {}
        self._prev_scenario_debug = {}
コード例 #8
0
    def __init__(self, *argv, **kwargs):
        from Tribler.community.privatesemantic.test import PoliFSemanticCommunity

        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = PoliFSemanticCommunity

        self.manual_connect = False
        self.random_connect = False
        self.bootstrap_percentage = 1.0
        self.late_join = 0

        self.taste_buddies = {}
        self.not_connected_taste_buddies = set()

        self.log_statistics_lc = None
        self.prev_scenario_statistics = {}
        self.prev_scenario_debug = {}

        self.community_kwargs['integrate_with_tribler'] = False
コード例 #9
0
ファイル: social_client.py プロジェクト: vandenheuvel/gumby
    def __init__(self, *argv, **kwargs):
        from Tribler.community.privatesocial.community import PoliSocialCommunity
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = PoliSocialCommunity

        self.friends = set()
        self.not_connected_friends = set()
        self.foafs = set()
        self.not_connected_foafs = set()

        self.peercache = False

        self.friendhashes = {}
        self.foafhashes = {}

        self.set_community_kwarg('integrate_with_tribler', False)
        self.set_community_kwarg('encryption', False)
        self.set_community_kwarg('max_prefs', 100)
        self.set_community_kwarg('max_fprefs', 100)
        self.set_community_kwarg('use_cardinality', False)
コード例 #10
0
ファイル: social_client.py プロジェクト: LipuFei/gumby
    def __init__(self, *argv, **kwargs):
        from Tribler.community.privatesocial.community import PoliSocialCommunity
        DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
        self.community_class = PoliSocialCommunity

        self.friends = set()
        self.not_connected_friends = set()
        self.foafs = set()
        self.not_connected_foafs = set()

        self.peercache = False

        self.friendhashes = {}
        self.foafhashes = {}

        self.set_community_kwarg('integrate_with_tribler', False)
        self.set_community_kwarg('encryption', False)
        self.set_community_kwarg('max_prefs', 100)
        self.set_community_kwarg('max_fprefs', 100)
        self.set_community_kwarg('use_cardinality', False)
コード例 #11
0
ファイル: demers_client.py プロジェクト: LipuFei/gumby
 def __init__(self, *argv, **kwargs):
     from Tribler.community.demers.community import DemersTest
     DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
     self.community_class = DemersTest
コード例 #12
0
ファイル: demers_client.py プロジェクト: rjruigrok/gumby
 def __init__(self, *argv, **kwargs):
     from Tribler.community.demers.community import DemersTest
     DispersyExperimentScriptClient.__init__(self, *argv, **kwargs)
     self.community_class = DemersTest