def check_stability(self, verbose=False):
        if self.K < 100:
            eigs = np.linalg.eigvals(self.weight_model.W_effective)
            maxeig = np.amax(np.real(eigs))
        else:
            from scipy.sparse.linalg import eigs
            maxeig = eigs(self.weight_model.W_effective, k=1)[0]

        if verbose:
            print "Max eigenvalue: ", maxeig

        return maxeig < 1.0
>>> text = '''
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/models.py/_DiscreteTimeNetworkHawkesModelBase.check_stability--crossover with--dataset/ETHPy150Open limodou/par/test/test_md.py/test_dl_4