<commit_before>namespace Firebase.Query
{
    using System;
    using System.Net.Http;
    using System.Threading.Tasks;

    using Newtonsoft.Json;

    /// <summary>
    /// Firebase query which references the child of current node.
    /// </summary>
    public class ChildQuery : FirebaseQuery, IDisposable
    {
        private readonly string path;
        private HttpClient client;

        /// <summary>
        /// Initializes a new instance of the <see cref="ChildQuery"/> class.
        /// </summary>
        /// <param name="path"> The path to the child node. </param>
        /// <param name="parent"> The parent. </param>
        public ChildQuery(string path, FirebaseQuery parent)
            : base(parent)
        {
            this.path = path;

            if (!this.path.EndsWith("/"))
            {
                this.path += "/";
            }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ChildQuery"/> class.
        /// </summary>
        /// <param name="path"> The path to the child node. </param>
        public ChildQuery(string path)
            : this(path, null)
        {
        }

        public void Dispose()
        {
            this.client?.Dispose();
        }

        public async Task<FirebaseObject<T>> PostAsync<T>(T obj)
        {
            var key = FirebaseKeyGenerator.Next();
            var c = this.GetClient();

            await new ChildQuery(key, this).SendAsync(c, obj, HttpMethod.Post);

            return new FirebaseObject<T>(key, obj);
        }

        public async Task PutAsync<T>(T obj)
        {
            var c = this.GetClient();

            await this.SendAsync(c, obj, HttpMethod.Put);
        }

        public async Task DeleteAsync()
        {
            var c = this.GetClient();
            var url = this.BuildUrl();<commit_msg>Fix for posting to location<commit_after>namespace Firebase.Query
{
    using System;
    using System.Net.Http;
    using System.Threading.Tasks;

    using Newtonsoft.Json;

    /// <summary>
    /// Firebase query which references the child of current node.
    /// </summary>
    public class ChildQuery : FirebaseQuery, IDisposable
    {
        private readonly string path;
        private HttpClient client;

        /// <summary>
        /// Initializes a new instance of the <see cref="ChildQuery"/> class.
        /// </summary>
        /// <param name="path"> The path to the child node. </param>
        /// <param name="parent"> The parent. </param>
        public ChildQuery(string path, FirebaseQuery parent)
            : base(parent)
        {
            this.path = path;

            if (!this.path.EndsWith("/"))
            {
                this.path += "/";
            }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ChildQuery"/> class.
        /// </summary>
        /// <param name="path"> The path to the child node. </param>
        public ChildQuery(string path)
            : this(path, null)
        {
        }

        public void Dispose()
        {
            this.client?.Dispose();
        }

        public async Task<FirebaseObject<T>> PostAsync<T>(T obj)
        {
            var key = FirebaseKeyGenerator.Next();
            var c = this.GetClient();

            // post would generate a new key server-side, while put can be used with an already generated local key
            await new ChildQuery(key, this).SendAsync(c, obj, HttpMethod.Put);

            return new FirebaseObject<T>(key, obj);
        }

        public async Task PutAsync<T>(T obj)
        {
            var c = this.GetClient();

            await this.SendAsync(c, obj, HttpMethod.Put);
        }

        public async Task DeleteAsync()
        {
            var c = this.GetClient();
            var url = this.BuildUrl();
{'fraction_non_alphanumeric': 0.11886841422268363, 'fraction_numerical': 0.0, 'mean_word_length': 1.6093432633716993, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '3496256', 'n_tokens_mistral': 1031, 'n_tokens_neox': 1010, 'n_words': 303}