<commit_before>﻿// Console WebAPI by Mozilla Contributors is licensed under CC-BY-SA 2.5.
// https://developer.mozilla.org/en-US/docs/Web/API/Console

using Bridge;

namespace Bridge.Html5
{
    /// <summary>
    /// The console object provides access to the browser's debugging console (e.g. the Web Console in Firefox). The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided.
    /// </summary>
    [Ignore]
    [Name("console")]
    public static class Console
    {
        /// <summary>
        /// The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <param name="text">text is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.</param>
        /// <param name="value">value is a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.</param>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt({text},{value})")]
        public static string ReadLine(string text, string value)
        {
            return null;
        }

        /// <summary>
        /// The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <param name="text">text is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.</param>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt({text})")]
        public static string ReadLine(string text)
        {
            return null;
        }

        /// <summary>
        /// The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt()")]
        public static string ReadLine()
        {
            return null;
        }

        [Name("log")]
        public static void WriteLine(string message)
        {
        }

        [Template("console.log(Bridge.String.format({message}, {args}))")]
        public static void WriteLine(string message, params object[] args)
        {
        }

        [Template("console.log()")]
        public static void WriteLine() 
        { 
        }

        [Template("console.log({value})")]
        public static void WriteLine(bool value)
        {
        }

        [Template("console.log(String.fromCharCode({value}))")]
        public static void WriteLine(char value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(decimal value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(double value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(float value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(int value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(long value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(object value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(uint value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(ulong value)
        {
        }
<commit_msg>Add Console.Read() - Simple implementation of window.prompt()<commit_after>﻿// Console WebAPI by Mozilla Contributors is licensed under CC-BY-SA 2.5.
// https://developer.mozilla.org/en-US/docs/Web/API/Console

using Bridge;

namespace Bridge.Html5
{
    /// <summary>
    /// The console object provides access to the browser's debugging console (e.g. the Web Console in Firefox). The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided.
    /// </summary>
    [Ignore]
    [Name("console")]
    public static class Console
    {
        [Name("log")]
        public static void WriteLine(string message)
        {
        }

        [Template("console.log(Bridge.String.format({message}, {args}))")]
        public static void WriteLine(string message, params object[] args)
        {
        }

        [Template("console.log()")]
        public static void WriteLine() 
        { 
        }

        [Template("console.log({value})")]
        public static void WriteLine(bool value)
        {
        }

        [Template("console.log(String.fromCharCode({value}))")]
        public static void WriteLine(char value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(decimal value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(double value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(float value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(int value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(long value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(object value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(uint value)
        {
        }

        [Template("console.log({value})")]
        public static void WriteLine(ulong value)
        {
        }

        /// <summary>
        /// ReadLine uses the native JavaScript prompt() to dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <param name="text">text is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.</param>
        /// <param name="value">value is a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.</param>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt({text},{value})")]
        public static string ReadLine(string text, string value)
        {
            return null;
        }

        /// <summary>
        /// ReadLine uses the native JavaScript prompt() to display a dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <param name="text">text is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.</param>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt({text})")]
        public static string ReadLine(string text)
        {
            return null;
        }

        /// <summary>
        /// ReadLine uses the native JavaScript prompt() to display a dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt()")]
        public static string ReadLine()
        {
            return null;
        }

        /// <summary>
        /// Read uses the native JavaScript prompt() to display a dialog with an optional message prompting the user to input some text.
        /// </summary>
        /// <returns>result is a string containing the text entered by the user, or the value null.</returns>
        [Template("prompt()")]
        public static string Read()
        {
            return null;
        }

{'fraction_non_alphanumeric': 0.10843660629170639, 'fraction_numerical': 0.0011916110581506197, 'mean_word_length': 2.134055265123226, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 2, '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': '1252944', 'n_tokens_mistral': 2109, 'n_tokens_neox': 2025, 'n_words': 805}