<commit_before>from satispy.io import DimacsCnf
from satispy import Variable
from satispy import Solution

from subprocess import call
from tempfile import NamedTemporaryFile

class Minisat(object):
    COMMAND = 'minisat %s %s > /dev/null'

    def __init__(self, command=COMMAND):
        self.command = command

    def solve(self, cnf):
        s = Solution()

        infile = NamedTemporaryFile(mode='w')<commit_msg>make sure minisat can be launched on windows: use NUL instead of /dev/null<commit_after>from satispy.io import DimacsCnf
from satispy import Variable
from satispy import Solution

import sys
from subprocess import call
from tempfile import NamedTemporaryFile

class Minisat(object):
    COMMAND = 'minisat %s %s > ' + \
        ('NUL' if sys.platform == 'win32' else '/dev/null')

    def __init__(self, command=COMMAND):
        self.command = command

    def solve(self, cnf):
        s = Solution()

        infile = NamedTemporaryFile(mode='w')
{'fraction_non_alphanumeric': 0.08856848609680741, 'fraction_numerical': 0.0020597322348094747, 'mean_word_length': 3.5849056603773586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2612121', 'n_tokens_mistral': 309, 'n_tokens_neox': 299, 'n_words': 96}