<commit_before><%@ Page Language="C#" %>
<script runat="server" language="C#">
public void Page_Load(object sender, EventArgs e)
{
string path = Request.Params["path"];
System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost:8123/up/" + path);
System.Net.WebResponse response = request.GetResponse();
System.IO.Stream responseStream = response.GetResponseStream();
System.IO.StreamReader reader = new System.IO.StreamReader(responseStream);
Response.ContentType = response.ContentType;
Response.Write(reader.ReadToEnd());
reader.Close();
responseStream.Close();
response.Close();
}
</script><commit_msg>Fix ASPX support for posts (make chat work with up.aspx) (thanks to bytemr!) (https://github.com/webbukkit/dynmap/issues/759<commit_after><%@ Page Language="C#" %>
<script runat="server" language="C#">
public void Page_Load(object sender, EventArgs e)
{
    string path = Request.Params["path"];
    System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost:8123/up/" + path);

    if (Request.HttpMethod.Equals("POST"))
    {
        request.ContentType = Request.ContentType;
        request.ContentLength = Request.ContentLength;
        request.Method = Request.HttpMethod;

        //Read the request's data and write it to the WebClient's request.
        System.IO.Stream requestStream = request.GetRequestStream();

        byte[] requestData = new byte[Request.ContentLength];
        Request.InputStream.Read(requestData, 0, requestData.Length);
        requestStream.Write(requestData, 0, requestData.Length);
        requestStream.Close();
    }

    //Get the response from the server.
    System.Net.WebResponse response = request.GetResponse();
    System.IO.Stream responseStream = response.GetResponseStream();
    System.IO.StreamReader reader = new System.IO.StreamReader(responseStream);
    Response.ContentType = response.ContentType;
    Response.Write(reader.ReadToEnd());
    reader.Close();
    responseStream.Close();
    response.Close();
}
</script>
{'fraction_non_alphanumeric': 0.1360804983229516, 'fraction_numerical': 0.006229036895064686, 'mean_word_length': 4.5828877005347595, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '3566379', 'n_tokens_mistral': 601, 'n_tokens_neox': 581, 'n_words': 123}