<commit_before>import subprocess

import pytest

ENV_ID = 'Pendulum-v0'

def _assert_eq(left, right):
    assert left == right, '{} != {}'.format(left, right)


def _assert_neq(left, right):
    assert left != right, '{} == {}'.format(left, right)


def test_ddpg():
    args = ['--env-id', ENV_ID, '--nb-epochs', 2, '--nb-epoch-cycles', 2, '--nb-rollout-steps', 100]
    args = list(map(str, args))
    ok = subprocess.call(['python', '-m', 'baselines.ddpg.main'] + args)
    _assert_eq(ok, 0)
<commit_msg>Fix flake8<commit_after>import subprocess

ENV_ID = 'Pendulum-v0'

def _assert_eq(left, right):
    assert left == right, '{} != {}'.format(left, right)


def _assert_neq(left, right):
    assert left != right, '{} == {}'.format(left, right)


def test_ddpg():
    args = ['--env-id', ENV_ID, '--nb-epochs', 2, '--nb-epoch-cycles', 2, '--nb-rollout-steps', 100]
    args = list(map(str, args))
    ok = subprocess.call(['python', '-m', 'baselines.ddpg.main'] + args)
    _assert_eq(ok, 0)

{'fraction_non_alphanumeric': 0.21485943775100402, 'fraction_numerical': 0.015060240963855422, 'mean_word_length': 3.7251184834123223, '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': '5204511', 'n_tokens_mistral': 403, 'n_tokens_neox': 389, 'n_words': 85}