<commit_before># -*- coding: iso-8859-1 -*-

from hoomd_script import *
import hoomd_script;
context.initialize()
import unittest
import os

# unit test to run a simple polymer system with pair and bond potentials
class multi_context(unittest.TestCase):
    def test_run(self):
        self.c1 = context.SimulationContext()
        self.c2 = context.SimulationContext()

        with self.c1:
            init.create_random(N=500, phi_p=0.2)
            lj = pair.lj(r_cut=3.0)
            lj.pair_coeff.set('A', 'A', epsilon=1.0, sigma=1.0)

            integrate.mode_standard(dt=0.005)
            integrate.nvt(group=group.all(), T=1.2, tau=0.5)

        with self.c2:
            init.create_random(N=200, phi_p=0.02)
            lj = pair.lj(r_cut=3.0)
            lj.pair_coeff.set('A', 'A', epsilon=1.0, sigma=1.0)

            integrate.mode_standard(dt=0.005)
            integrate.nvt(group=group.all(), T=1.2, tau=0.5)

        with self.c1:
            run(10)<commit_msg>Fix failing MPI tests<commit_after># -*- coding: iso-8859-1 -*-

from hoomd_script import *
import hoomd_script;
context.initialize()
import unittest
import os

# unit test to run a simple polymer system with pair and bond potentials
class multi_context(unittest.TestCase):
    def test_run(self):
        self.c1 = context.SimulationContext()
        self.c2 = context.SimulationContext()

        with self.c1:
            init.create_random(N=2000, phi_p=0.2)
            lj = pair.lj(r_cut=3.0)
            lj.pair_coeff.set('A', 'A', epsilon=1.0, sigma=1.0)

            integrate.mode_standard(dt=0.005)
            integrate.nvt(group=group.all(), T=1.2, tau=0.5)

        with self.c2:
            init.create_random(N=1000, phi_p=0.02)
            lj = pair.lj(r_cut=3.0)
            lj.pair_coeff.set('A', 'A', epsilon=1.0, sigma=1.0)

            integrate.mode_standard(dt=0.005)
            integrate.nvt(group=group.all(), T=1.2, tau=0.5)

        with self.c1:
            run(10)
{'fraction_non_alphanumeric': 0.13737373737373737, 'fraction_numerical': 0.052525252525252523, 'mean_word_length': 2.3016666666666667, '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': '7476849', 'n_tokens_mistral': 765, 'n_tokens_neox': 710, 'n_words': 132}