<commit_before>#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# **       PTS -- Python Toolkit for working with SKIRT          **
# **       © Astronomical Observatory, Ghent University          **
# *****************************************************************

## \package pts.evolve.Migration This module contains all the migration
#  schemes and the distributed GA related functions.

# -----------------------------------------------------------------

# Import other evolve modules
import utils
import network
import constants
from functionslot import FunctionSlot

# Import the relevant PTS classes and modules
from ..core.tools.logging import log
from ..core.tools.random import prng

try:
   from mpi4py import MPI
   HAS_MPI4PY = True
except ImportError:
   HAS_MPI4PY = False

# -----------------------------------------------------------------

class MigrationScheme(object):

    """ This is the base class for all migration schemes """

    selector = None
    """ This is the function slot for the selection method<commit_msg>Eliminated some more ambigious relative imports<commit_after>#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# **       PTS -- Python Toolkit for working with SKIRT          **
# **       © Astronomical Observatory, Ghent University          **
# *****************************************************************

## \package pts.evolve.Migration This module contains all the migration
#  schemes and the distributed GA related functions.

# -----------------------------------------------------------------

# Import other evolve modules
from pts.evolve import utils
from pts.evolve import network
from pts.evolve import constants
from pts.evolve.functionslot import FunctionSlot

# Import the relevant PTS classes and modules
from ..core.tools.logging import log
from ..core.tools.random import prng

try:
   from mpi4py import MPI
   HAS_MPI4PY = True
except ImportError:
   HAS_MPI4PY = False

# -----------------------------------------------------------------

class MigrationScheme(object):

    """ This is the base class for all migration schemes """

    selector = None
    """ This is the function slot for the selection method
{'fraction_non_alphanumeric': 0.2855291576673866, 'fraction_numerical': 0.0034557235421166306, 'mean_word_length': 2.4008810572687223, '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': '4500191', 'n_tokens_mistral': 533, 'n_tokens_neox': 508, 'n_words': 196}