<commit_before>package edu.cmu.cs.diamond.opendiamond;

import edu.cmu.cs.diamond.opendiamond.glue.groupidArray;

public class NameScope extends Scope {
    private final String name;

    NameScope(String name, groupidArray gids, int size) {
        super(gids, size);
        this.name = name;
    }
    
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("scope: " + name + " [");
        for (int i = 0; i < gidsSize; i++) {
            sb.append(" " + gids.getitem(i));
        }
        sb.append(" ]");
        return sb.toString();
    }

    @Override
    public String getName() {
        return name;
    }
}<commit_msg>improve scope toString<commit_after>package edu.cmu.cs.diamond.opendiamond;

import edu.cmu.cs.diamond.opendiamond.glue.groupidArray;

public class NameScope extends Scope {
    private final String name;

    NameScope(String name, groupidArray gids, int size) {
        super(gids, size);
        this.name = name;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("scope: " + name + " (gids: "
                + getGidsSize() + ")");
        return sb.toString();
    }

    @Override
    public String getName() {
        return name;
    }
}
{'fraction_non_alphanumeric': 0.11955661124307206, 'fraction_numerical': 0.000791765637371338, 'mean_word_length': 2.3439153439153437, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5894071', 'n_tokens_mistral': 409, 'n_tokens_neox': 391, 'n_words': 94}