<commit_before>
# coding: utf-8

### An example to demostrate the usage of make boolean function.

# In[1]:

from __future__ import print_function
from BinPy.algorithms.makebooleanfunction import *


# In[2]:

# Usage of make_boolean() function
logical_expression, gate_form = make_boolean(['A', 'B', 'C'], [1, 4, 7], minterms=True)


# In[3]:

# Print the logical function
print(logical_expression)


# In[4]:

# Print the gate form
print(gate_form)


# In[5]:

# Another example
logical_expression, gate_form = make_boolean(['A', 'B', 'C', 'D'], [1, 4, 7, 0], maxterms=True)


# In[6]:

# Print the logical function
print(logical_expression)


# In[7]:

# Print the gate form
print(gate_form)<commit_msg>Update python sources for algorithms<commit_after># -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>

# <headingcell level=2>

# An example to demostrate the usage of make boolean function.

# <codecell>

from __future__ import print_function
from BinPy.algorithms.makebooleanfunction import *

# <codecell>

# Usage of make_boolean() function
logical_expression, gate_form = make_boolean(['A', 'B', 'C'], [1, 4, 7], minterms=True)

# <codecell>

# Print the logical function
print(logical_expression)

# <codecell>

# Print the gate form
print(gate_form)

# <codecell>

# Another example
logical_expression, gate_form = make_boolean(['A', 'B', 'C', 'D'], [1, 4, 7, 0], maxterms=True)

# <codecell>

# Print the logical function
print(logical_expression)

# <codecell>

# Print the gate form
print(gate_form)
{'fraction_non_alphanumeric': 0.14134742404227213, 'fraction_numerical': 0.017173051519154558, 'mean_word_length': 5.260330578512397, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6016006', 'n_tokens_mistral': 549, 'n_tokens_neox': 525, 'n_words': 152}