<commit_before>import cybox.bindings.cybox_common as common_binding
from cybox.common import String

class EnvironmentVariable(object):
    def __init__(self):
        self.name = None
        self.value = None

    def to_obj(self):
        environment_variable_obj = common_binding.EnvironmentVariableType()

        if self.name is not None: environment_variable_obj.set_Name(self.name.to_obj())
        if self.value is not None: environment_variable_obj.set_Value(self.value.to_obj())

        return environment_variable_obj

    def to_dict(self):
        environment_variable_dict = {}<commit_msg>Updated environment variable for consistency with current interfaces<commit_after>import cybox
import cybox.bindings.cybox_common as common_binding
from cybox.common.properties import String

class EnvironmentVariable(cybox.Entity):
    def __init__(self):
        self.name = None
        self.value = None

    def to_obj(self):
        environment_variable_obj = common_binding.EnvironmentVariableType()

        if self.name is not None: environment_variable_obj.set_Name(self.name.to_obj())
        if self.value is not None: environment_variable_obj.set_Value(self.value.to_obj())

        return environment_variable_obj

    def to_dict(self):
        environment_variable_dict = {}
{'fraction_non_alphanumeric': 0.07413127413127413, 'fraction_numerical': 0.0, 'mean_word_length': 3.8358208955223883, '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': '5900597', 'n_tokens_mistral': 362, 'n_tokens_neox': 352, 'n_words': 83}