<commit_before>package com.nhn.pinpoint.profiler.context;

import java.util.Random;

/**
 * @author emeroad
 */
public class SpanId {

    public static final long NULL = -1;

    private static final Random seed = new Random();

    public static long newSpanId() {
        long id = seed.nextLong();
        while (id == NULL) {
            id = seed.nextInt();
        }
        return id;
    }

    public static long nextSpanID(long spanId, long parentSpanId) {
        long newId = newSpanId();
        while (newId == spanId || newId == parentSpanId) {
            newId = newSpanId();
        }
        return newId;
    }
}<commit_msg>[강운덕] [LUCYSUS-1744] spanId를 long으로 반납안하는 부분이 있어 수정.<commit_after>package com.nhn.pinpoint.profiler.context;

import java.util.Random;

/**
 * @author emeroad
 */
public class SpanId {

    public static final long NULL = -1;

    private static final Random seed = new Random();

    public static long newSpanId() {
        long id = seed.nextLong();
        while (id == NULL) {
            id = seed.nextLong();
        }
        return id;
    }

    public static long nextSpanID(long spanId, long parentSpanId) {
        long newId = newSpanId();
        while (newId == spanId || newId == parentSpanId) {
            newId = newSpanId();
        }
        return newId;
    }
}
{'fraction_non_alphanumeric': 0.11278195488721804, 'fraction_numerical': 0.004511278195488722, 'mean_word_length': 2.124413145539906, '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': '5215250', 'n_tokens_mistral': 429, 'n_tokens_neox': 427, 'n_words': 117}