<commit_before>import os

from spack.architecture import Architecture

class Cray(Architecture):
    priority    = 20
    front_end   = None
    back_end    = None
    default     = None

    def __init__(self):
        super(Cray, self).__init__('cray')

    @classmethod
    def detect(self):
        return os.path.exists('/opt/cray/craype')
    <commit_msg>Added default target and also front end and back end targets<commit_after>import os

from spack.architecture import Architecture

class Cray(Architecture):
    priority    = 20
    front_end   = 'sandybridge' 
    back_end    = 'ivybridge'
    default     = os.environ["CRAY_CPU_TARGET"] 

    def __init__(self):
        super(Cray, self).__init__('cray')

    @classmethod
    def detect(self):
        return os.path.exists('/opt/cray/craype')
    
{'fraction_non_alphanumeric': 0.09729064039408868, 'fraction_numerical': 0.0049261083743842365, 'mean_word_length': 2.7990654205607477, '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': '5884250', 'n_tokens_mistral': 271, 'n_tokens_neox': 255, 'n_words': 60}