<commit_before>package com.pubnub.api;

public class ChannelGroup {
    String group;
    String namespace;

    ChannelGroup(String name) throws PubnubException {
        String[] parts = name.split(":", 2);

        switch (parts.length) {
            case 2:
                setNamespace(parts[0]);
                setGroup(parts[1]);
                break;
            case 1:
                group = name;
                break;
            default:
                throw new PubnubException("Invalid channel group string");
        }
    }

    public void setGroup(String groupName) {
        if (groupName != null && !"".equals(groupName)) {<commit_msg>update compatibility with java 1.3<commit_after>package com.pubnub.api;

public class ChannelGroup {
    String group;
    String namespace;

    ChannelGroup(String name) throws PubnubException {
        int index = name.indexOf(":");

        if (index == -1) {
            setGroup(name);
        } else {
            setNamespace(name.substring(0, index));
            setGroup(name.substring(index + 1));
        }
    }

    public void setGroup(String groupName) {
        if (groupName != null && !"".equals(groupName)) {
{'fraction_non_alphanumeric': 0.11008403361344538, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 1.9334975369458127, 'pattern_counts': {'":': 2, '<': 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': '4620811', 'n_tokens_mistral': 333, 'n_tokens_neox': 314, 'n_words': 81}