<commit_before>package com.selfcoders.networkmusicplayer.server.rest;

import com.selfcoders.networkmusicplayer.server.mediastreamer.HttpStreamBuilder;

import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import java.io.IOException;

@Path("/stream/{id:\\d+}")
public class Stream {
    @GET
    @Produces("audio/mp3")
    public Response get(@HeaderParam("Range") String range, @PathParam("id") int id) throws IOException {
        // TODO: Get file by ID (Requires database connection)
        HttpStreamBuilder streamBuilder = new HttpStreamBuilder(file, 1024 * 1024);

        return streamBuilder.build(range);
    }
}<commit_msg>Fixed error (value should be replaced with value from database)<commit_after>package com.selfcoders.networkmusicplayer.server.rest;

import com.selfcoders.networkmusicplayer.server.mediastreamer.HttpStreamBuilder;

import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import java.io.File;
import java.io.IOException;

@Path("/stream/{id:\\d+}")
public class Stream {
    @GET
    @Produces("audio/mp3")
    public Response get(@HeaderParam("Range") String range, @PathParam("id") int id) throws IOException {
        File file = null;// TODO: Get file by ID (Requires database connection)
        HttpStreamBuilder streamBuilder = new HttpStreamBuilder(file, 1024 * 1024);

        return streamBuilder.build(range);
    }
}
{'fraction_non_alphanumeric': 0.12172284644194757, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.4709897610921505, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5834620', 'n_tokens_mistral': 505, 'n_tokens_neox': 484, 'n_words': 114}