This commit is contained in:
azure-pipelines[bot] 2023-03-28 07:39:06 +00:00
parent 67e01c76b4
commit 02bed41d9a
554 changed files with 652 additions and 377 deletions

2
1001.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1001],{1001:(e,n,i)=>{i.r(n),i.d(n,{default:()=>t});const t='begin:\nTextWindow.Write("Enter a number: ")\nnum = TextWindow.ReadNumber()\nremainder = Math.Remainder(num, 2)\nIf (remainder = 0) Then\n TextWindow.WriteLine("The number is Even")\nElse\n TextWindow.WriteLine("The number is Odd")\nEndIf\nGoto begin'}}]);
//# sourceMappingURL=1001.js.map

1
1001.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1001.js","mappings":"8IAAA,oQ","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.sb.txt"],"sourcesContent":["export default \"begin:\\nTextWindow.Write(\\\"Enter a number: \\\")\\nnum = TextWindow.ReadNumber()\\nremainder = Math.Remainder(num, 2)\\nIf (remainder = 0) Then\\n TextWindow.WriteLine(\\\"The number is Even\\\")\\nElse\\n TextWindow.WriteLine(\\\"The number is Odd\\\")\\nEndIf\\nGoto begin\";"],"names":[],"sourceRoot":""}

2
120.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[120],{120:(n,t,e)=>{e.r(t),e.d(t,{default:()=>a});const a="FROM mono:3.12\n\nENV KRE_FEED https://www.myget.org/F/aspnetvnext/api/v2\nENV KRE_USER_HOME /opt/kre\n\nRUN apt-get -qq update && apt-get -qqy install unzip \n\nONBUILD RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/kvminstall.sh | sh\nONBUILD RUN bash -c \"source $KRE_USER_HOME/kvm/kvm.sh \\\n && kvm install latest -a default \\\n && kvm alias default | xargs -i ln -s $KRE_USER_HOME/packages/{} $KRE_USER_HOME/packages/default\"\n\n# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)\nRUN apt-get -qqy install \\\n autoconf \\\n automake \\\n build-essential \\\n libtool \nRUN LIBUV_VERSION=1.0.0-rc2 \\\n && curl -sSL https://github.com/joyent/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \\\n && cd /usr/local/src/libuv-$LIBUV_VERSION \\\n && sh autogen.sh && ./configure && make && make install \\\n && rm -rf /usr/local/src/libuv-$LIBUV_VERSION \\\n && ldconfig\n\nENV PATH $PATH:$KRE_USER_HOME/packages/default/bin\n\n# Extra things to test\nRUN echo \"string at end\"\nRUN echo must work 'some str' and some more\nRUN echo hi this is # not a comment\nRUN echo 'String with ${VAR} and another $one here'"}}]);
//# sourceMappingURL=120.js.map

1
120.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"120.js","mappings":"4IAAA,quC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.dockerfile.txt"],"sourcesContent":["export default \"FROM mono:3.12\\n\\nENV KRE_FEED https://www.myget.org/F/aspnetvnext/api/v2\\nENV KRE_USER_HOME /opt/kre\\n\\nRUN apt-get -qq update && apt-get -qqy install unzip \\n\\nONBUILD RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/kvminstall.sh | sh\\nONBUILD RUN bash -c \\\"source $KRE_USER_HOME/kvm/kvm.sh \\\\\\n && kvm install latest -a default \\\\\\n && kvm alias default | xargs -i ln -s $KRE_USER_HOME/packages/{} $KRE_USER_HOME/packages/default\\\"\\n\\n# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)\\nRUN apt-get -qqy install \\\\\\n autoconf \\\\\\n automake \\\\\\n build-essential \\\\\\n libtool \\nRUN LIBUV_VERSION=1.0.0-rc2 \\\\\\n && curl -sSL https://github.com/joyent/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \\\\\\n && cd /usr/local/src/libuv-$LIBUV_VERSION \\\\\\n && sh autogen.sh && ./configure && make && make install \\\\\\n && rm -rf /usr/local/src/libuv-$LIBUV_VERSION \\\\\\n && ldconfig\\n\\nENV PATH $PATH:$KRE_USER_HOME/packages/default/bin\\n\\n# Extra things to test\\nRUN echo \\\"string at end\\\"\\nRUN echo must work 'some str' and some more\\nRUN echo hi this is # not a comment\\nRUN echo 'String with ${VAR} and another $one here'\";"],"names":[],"sourceRoot":""}

2
1348.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1348],{1348:(e,n,E)=>{E.r(n),E.d(n,{default:()=>m});const m="BEGIN\n SELECT * INTO STRICT myrec FROM emp WHERE empname = myname;\n EXCEPTION\n WHEN NO_DATA_FOUND THEN\n RAISE EXCEPTION 'employee % not found', myname;\n WHEN TOO_MANY_ROWS THEN\n RAISE EXCEPTION 'employee % not unique', myname;\nEND;"}}]);
//# sourceMappingURL=1348.js.map

1
1348.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1348.js","mappings":"8IAAA,kS","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.pgsql.txt"],"sourcesContent":["export default \"BEGIN\\n SELECT * INTO STRICT myrec FROM emp WHERE empname = myname;\\n EXCEPTION\\n WHEN NO_DATA_FOUND THEN\\n RAISE EXCEPTION 'employee % not found', myname;\\n WHEN TOO_MANY_ROWS THEN\\n RAISE EXCEPTION 'employee % not unique', myname;\\nEND;\";"],"names":[],"sourceRoot":""}

2
1363.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1363],{1363:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});const s='\n<div class="entry">\n\t<h1>{{title}}</h1>\n\t{{#if author}}\n\t<h2>{{author.firstName}} {{author.lastName}}</h2>\n\t{{else}}\n\t<h2>Unknown Author</h2>\n\t{{/if}}\n\t{{contentBody}}\n</div>\n\n{{#unless license}}\n <h3 class="warning">WARNING: This entry does not have a license!</h3>\n{{/unless}}\n\n<div class="footnotes">\n\t<ul>\n\t\t{{#each footnotes}}\n\t\t<li>{{this}}</li>\n\t\t{{/each}}\n\t</ul>\n</div>\n\n<h1>Comments</h1>\n\n<div id="comments">\n\t{{#each comments}}\n\t<h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2>\n\t<div>{{body}}</div>\n\t{{/each}}\n</div>\n'}}]);
//# sourceMappingURL=1363.js.map

1
1363.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1363.js","mappings":"8IAAA,4lB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.handlebars.txt"],"sourcesContent":["export default \"\\n<div class=\\\"entry\\\">\\n\\t<h1>{{title}}</h1>\\n\\t{{#if author}}\\n\\t<h2>{{author.firstName}} {{author.lastName}}</h2>\\n\\t{{else}}\\n\\t<h2>Unknown Author</h2>\\n\\t{{/if}}\\n\\t{{contentBody}}\\n</div>\\n\\n{{#unless license}}\\n <h3 class=\\\"warning\\\">WARNING: This entry does not have a license!</h3>\\n{{/unless}}\\n\\n<div class=\\\"footnotes\\\">\\n\\t<ul>\\n\\t\\t{{#each footnotes}}\\n\\t\\t<li>{{this}}</li>\\n\\t\\t{{/each}}\\n\\t</ul>\\n</div>\\n\\n<h1>Comments</h1>\\n\\n<div id=\\\"comments\\\">\\n\\t{{#each comments}}\\n\\t<h2><a href=\\\"/posts/{{../permalink}}#{{id}}\\\">{{title}}</a></h2>\\n\\t<div>{{body}}</div>\\n\\t{{/each}}\\n</div>\\n\";"],"names":[],"sourceRoot":""}

2
1401.js Normal file

File diff suppressed because one or more lines are too long

1
1401.js.map Normal file

File diff suppressed because one or more lines are too long

2
1425.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1425],{1425:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='(* Sample F# application *)\n[<EntryPoint>]\nlet main argv = \n printfn "%A" argv\n System.Console.WriteLine("Hello from F#")\n 0 // return an integer exit code\n\n//-------------------------------------------------------- \n'}}]);
//# sourceMappingURL=1425.js.map

1
1425.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1425.js","mappings":"8IAAA,oP","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.fsharp.txt"],"sourcesContent":["export default \"(* Sample F# application *)\\n[<EntryPoint>]\\nlet main argv = \\n printfn \\\"%A\\\" argv\\n System.Console.WriteLine(\\\"Hello from F#\\\")\\n 0 // return an integer exit code\\n\\n//-------------------------------------------------------- \\n\";"],"names":[],"sourceRoot":""}

2
1436.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1436],{1436:(t,n,e)=>{e.r(n),e.d(n,{default:()=>s});const s='{\n\t"type": "team",\n\t"test": {\n\t\t"testPage": "tools/testing/run-tests.htm",\n\t\t"enabled": true\n\t},\n "search": {\n "excludeFolders": [\n\t\t\t".git",\n\t\t\t"node_modules",\n\t\t\t"tools/bin",\n\t\t\t"tools/counts",\n\t\t\t"tools/policheck",\n\t\t\t"tools/tfs_build_extensions",\n\t\t\t"tools/testing/jscoverage",\n\t\t\t"tools/testing/qunit",\n\t\t\t"tools/testing/chutzpah",\n\t\t\t"server.net"\n ]\n },\n\t"languages": {\n\t\t"vs.languages.typescript": {\n\t\t\t"validationSettings": [{\n\t\t\t\t"scope":"/",\n\t\t\t\t"noImplicitAny":true,\n\t\t\t\t"noLib":false,\n\t\t\t\t"extraLibs":[],\n\t\t\t\t"semanticValidation":true,\n\t\t\t\t"syntaxValidation":true,\n\t\t\t\t"codeGenTarget":"ES5",\n\t\t\t\t"moduleGenTarget":"",\n\t\t\t\t"lint": {\n "emptyBlocksWithoutComment": "warning",\n "curlyBracketsMustNotBeOmitted": "warning",\n "comparisonOperatorsNotStrict": "warning",\n "missingSemicolon": "warning",\n "unknownTypeOfResults": "warning",\n "semicolonsInsteadOfBlocks": "warning",\n "functionsInsideLoops": "warning",\n "functionsWithoutReturnType": "warning",\n "tripleSlashReferenceAlike": "warning",\n "unusedImports": "warning",\n "unusedVariables": "warning",\n "unusedFunctions": "warning",\n "unusedMembers": "warning"\n }\n\t\t\t}, \n\t\t\t{\n\t\t\t\t"scope":"/client",\n\t\t\t\t"baseUrl":"/client",\n\t\t\t\t"moduleGenTarget":"amd"\n\t\t\t},\n\t\t\t{\n\t\t\t\t"scope":"/server",\n\t\t\t\t"moduleGenTarget":"commonjs"\n\t\t\t},\n\t\t\t{\n\t\t\t\t"scope":"/build",\n\t\t\t\t"moduleGenTarget":"commonjs"\n\t\t\t},\n\t\t\t{\n\t\t\t\t"scope":"/node_modules/nake",\n\t\t\t\t"moduleGenTarget":"commonjs"\n\t\t\t}],\n\t\t\t"allowMultipleWorkers": true\n\t\t}\n\t}\n}'}}]);
//# sourceMappingURL=1436.js.map

1
1436.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1436.js","mappings":"8IAAA,y7D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.json.txt"],"sourcesContent":["export default \"{\\n\\t\\\"type\\\": \\\"team\\\",\\n\\t\\\"test\\\": {\\n\\t\\t\\\"testPage\\\": \\\"tools/testing/run-tests.htm\\\",\\n\\t\\t\\\"enabled\\\": true\\n\\t},\\n \\\"search\\\": {\\n \\\"excludeFolders\\\": [\\n\\t\\t\\t\\\".git\\\",\\n\\t\\t\\t\\\"node_modules\\\",\\n\\t\\t\\t\\\"tools/bin\\\",\\n\\t\\t\\t\\\"tools/counts\\\",\\n\\t\\t\\t\\\"tools/policheck\\\",\\n\\t\\t\\t\\\"tools/tfs_build_extensions\\\",\\n\\t\\t\\t\\\"tools/testing/jscoverage\\\",\\n\\t\\t\\t\\\"tools/testing/qunit\\\",\\n\\t\\t\\t\\\"tools/testing/chutzpah\\\",\\n\\t\\t\\t\\\"server.net\\\"\\n ]\\n },\\n\\t\\\"languages\\\": {\\n\\t\\t\\\"vs.languages.typescript\\\": {\\n\\t\\t\\t\\\"validationSettings\\\": [{\\n\\t\\t\\t\\t\\\"scope\\\":\\\"/\\\",\\n\\t\\t\\t\\t\\\"noImplicitAny\\\":true,\\n\\t\\t\\t\\t\\\"noLib\\\":false,\\n\\t\\t\\t\\t\\\"extraLibs\\\":[],\\n\\t\\t\\t\\t\\\"semanticValidation\\\":true,\\n\\t\\t\\t\\t\\\"syntaxValidation\\\":true,\\n\\t\\t\\t\\t\\\"codeGenTarget\\\":\\\"ES5\\\",\\n\\t\\t\\t\\t\\\"moduleGenTarget\\\":\\\"\\\",\\n\\t\\t\\t\\t\\\"lint\\\": {\\n \\\"emptyBlocksWithoutComment\\\": \\\"warning\\\",\\n \\\"curlyBracketsMustNotBeOmitted\\\": \\\"warning\\\",\\n \\\"comparisonOperatorsNotStrict\\\": \\\"warning\\\",\\n \\\"missingSemicolon\\\": \\\"warning\\\",\\n \\\"unknownTypeOfResults\\\": \\\"warning\\\",\\n \\\"semicolonsInsteadOfBlocks\\\": \\\"warning\\\",\\n \\\"functionsInsideLoops\\\": \\\"warning\\\",\\n \\\"functionsWithoutReturnType\\\": \\\"warning\\\",\\n \\\"tripleSlashReferenceAlike\\\": \\\"warning\\\",\\n \\\"unusedImports\\\": \\\"warning\\\",\\n \\\"unusedVariables\\\": \\\"warning\\\",\\n \\\"unusedFunctions\\\": \\\"warning\\\",\\n \\\"unusedMembers\\\": \\\"warning\\\"\\n }\\n\\t\\t\\t}, \\n\\t\\t\\t{\\n\\t\\t\\t\\t\\\"scope\\\":\\\"/client\\\",\\n\\t\\t\\t\\t\\\"baseUrl\\\":\\\"/client\\\",\\n\\t\\t\\t\\t\\\"moduleGenTarget\\\":\\\"amd\\\"\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\t\\\"scope\\\":\\\"/server\\\",\\n\\t\\t\\t\\t\\\"moduleGenTarget\\\":\\\"commonjs\\\"\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\t\\\"scope\\\":\\\"/build\\\",\\n\\t\\t\\t\\t\\\"moduleGenTarget\\\":\\\"commonjs\\\"\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\t\\\"scope\\\":\\\"/node_modules/nake\\\",\\n\\t\\t\\t\\t\\\"moduleGenTarget\\\":\\\"commonjs\\\"\\n\\t\\t\\t}],\\n\\t\\t\\t\\\"allowMultipleWorkers\\\": true\\n\\t\\t}\\n\\t}\\n}\";"],"names":[],"sourceRoot":""}

2
1490.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1490],{1490:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='# Elixir is a dynamic, functional language for building scalable\n# and maintainable applications. Learn more: https://elixir-lang.org\n\n"Elixir" |> String.graphemes() |> Enum.frequencies()\n#=> %{"E" => 1, "i" => 2, "l" => 1, "r" => 1, "x" => 1}\n\n\n### Scalability ###\n\n# All Elixir code runs inside lightweight threads of execution (called processes)\n# that are isolated and exchange information via messages:\n\ncurrent_process = self()\n\n# Spawn an Elixir process (not an operating system one!)\nspawn_link(fn ->\n send(current_process, {:msg, "hello world"})\nend)\n\n# Block until the message is received\nreceive do\n {:msg, contents} -> IO.puts(contents)\nend\n\n\n### Fault-tolerance ###\n\n# To cope with failures, Elixir provides supervisors which describe\n# how to restart parts of your system when things go awry, going back\n# to a known initial state that is guaranteed to work:\n\nchildren = [\n TCP.Pool,\n {TCP.Acceptor, port: 4040}\n]\n\nSupervisor.start_link(children, strategy: :one_for_one)\n\n\n### Functional programming ###\n\n# Functional programming promotes a coding style that helps\n# developers write code that is short, concise, and maintainable.\n# One prominent example is pattern matching:\n\n%User{name: name, age: age} = User.get("John Doe")\nname #=> "John Doe"\n\n# When mixed with guards, pattern matching allows us to elegantly\n# match and assert specific conditions for some code to execute:\n\ndef drive(%User{age: age}) when age >= 16 do\n # Code that drives a car\nend\n\ndrive(User.get("John Doe"))\n#=> Fails if the user is under 16\n\n\n### Extensibility and DSLs ###\n\n# Elixir has been designed to be extensible, letting developers\n# naturally extend the language to particular domains,\n# in order to increase their productivity.\n\ndefmodule MathTest do\n use ExUnit.Case, async: true\n\n test "can add two numbers" do\n assert 1 + 1 == 2\n end\nend\n\n\n### Erlang compatible ###\n\n# An Elixir programmer can invoke any Erlang function with no runtime cost:\n\n:crypto.hash(:md5, "Using crypto from Erlang OTP")\n#=> <<192, 223, 75, 115, ...>>\n'}}]);
//# sourceMappingURL=1490.js.map

1
1490.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1490.js","mappings":"8IAAA,mlE","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.elixir.txt"],"sourcesContent":["export default \"# Elixir is a dynamic, functional language for building scalable\\n# and maintainable applications. Learn more: https://elixir-lang.org\\n\\n\\\"Elixir\\\" |> String.graphemes() |> Enum.frequencies()\\n#=> %{\\\"E\\\" => 1, \\\"i\\\" => 2, \\\"l\\\" => 1, \\\"r\\\" => 1, \\\"x\\\" => 1}\\n\\n\\n### Scalability ###\\n\\n# All Elixir code runs inside lightweight threads of execution (called processes)\\n# that are isolated and exchange information via messages:\\n\\ncurrent_process = self()\\n\\n# Spawn an Elixir process (not an operating system one!)\\nspawn_link(fn ->\\n send(current_process, {:msg, \\\"hello world\\\"})\\nend)\\n\\n# Block until the message is received\\nreceive do\\n {:msg, contents} -> IO.puts(contents)\\nend\\n\\n\\n### Fault-tolerance ###\\n\\n# To cope with failures, Elixir provides supervisors which describe\\n# how to restart parts of your system when things go awry, going back\\n# to a known initial state that is guaranteed to work:\\n\\nchildren = [\\n TCP.Pool,\\n {TCP.Acceptor, port: 4040}\\n]\\n\\nSupervisor.start_link(children, strategy: :one_for_one)\\n\\n\\n### Functional programming ###\\n\\n# Functional programming promotes a coding style that helps\\n# developers write code that is short, concise, and maintainable.\\n# One prominent example is pattern matching:\\n\\n%User{name: name, age: age} = User.get(\\\"John Doe\\\")\\nname #=> \\\"John Doe\\\"\\n\\n# When mixed with guards, pattern matching allows us to elegantly\\n# match and assert specific conditions for some code to execute:\\n\\ndef drive(%User{age: age}) when age >= 16 do\\n # Code that drives a car\\nend\\n\\ndrive(User.get(\\\"John Doe\\\"))\\n#=> Fails if the user is under 16\\n\\n\\n### Extensibility and DSLs ###\\n\\n# Elixir has been designed to be extensible, letting developers\\n# naturally extend the language to particular domains,\\n# in order to increase their productivity.\\n\\ndefmodule MathTest do\\n use ExUnit.Case, async: true\\n\\n test \\\"can add two numbers\\\" do\\n assert 1 + 1 == 2\\n end\\nend\\n\\n\\n### Erlang compatible ###\\n\\n# An Elixir programmer can invoke any Erlang function with no runtime cost:\\n\\n:crypto.hash(:md5, \\\"Using crypto from Erlang OTP\\\")\\n#=> <<192, 223, 75, 115, ...>>\\n\";"],"names":[],"sourceRoot":""}

2
1526.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1526],{1526:(n,e,a)=>{a.r(e),a.d(e,{default:()=>t});const t="class Random < Liquid::Block\n def initialize(tag_name, markup, tokens)\n super\n @rand = markup.to_i\n end\n\n def render(context)\n value = rand(@rand)\n super.sub('^^^', value.to_s) # calling `super` returns the content of the block\n end\nend\n\nLiquid::Template.register_tag('random', Random)\ntext = \" {% random 5 %} you have drawn number ^^^, lucky you! {% endrandom %} \"\n@template = Liquid::Template.parse(text)\n@template.render # will return \"you have drawn number 1, lucky you!\" in 20% of cases\n"}}]);
//# sourceMappingURL=1526.js.map

1
1526.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1526.js","mappings":"8IAAA,8hB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.liquid.txt"],"sourcesContent":["export default \"class Random < Liquid::Block\\n def initialize(tag_name, markup, tokens)\\n super\\n @rand = markup.to_i\\n end\\n\\n def render(context)\\n value = rand(@rand)\\n super.sub('^^^', value.to_s) # calling `super` returns the content of the block\\n end\\nend\\n\\nLiquid::Template.register_tag('random', Random)\\ntext = \\\" {% random 5 %} you have drawn number ^^^, lucky you! {% endrandom %} \\\"\\n@template = Liquid::Template.parse(text)\\n@template.render # will return \\\"you have drawn number 1, lucky you!\\\" in 20% of cases\\n\";"],"names":[],"sourceRoot":""}

2
1594.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1594],{1594:(n,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i='terraform {\n required_providers {\n aws = {\n source = "hashicorp/aws"\n version = "~> 1.0.4"\n }\n }\n}\n\nvariable "aws_region" {}\n\nvariable "base_cidr_block" {\n description = "A /16 CIDR range definition, such as 10.1.0.0/16, that the VPC will use"\n default = "10.1.0.0/16"\n}\n\nvariable "availability_zones" {\n description = "A list of availability zones in which to create subnets"\n type = list(string)\n}\n\nprovider "aws" {\n region = var.aws_region\n}\n\nresource "aws_vpc" "main" {\n # Referencing the base_cidr_block variable allows the network address\n # to be changed without modifying the configuration.\n cidr_block = var.base_cidr_block\n}\n\nresource "aws_subnet" "az" {\n # Create one subnet for each given availability zone.\n count = length(var.availability_zones)\n\n # For each subnet, use one of the specified availability zones.\n availability_zone = var.availability_zones[count.index]\n\n # By referencing the aws_vpc.main object, Terraform knows that the subnet\n # must be created only after the VPC is created.\n vpc_id = aws_vpc.main.id\n\n # Built-in functions and operators can be used for simple transformations of\n # values, such as computing a subnet address. Here we create a /20 prefix for\n # each subnet, using consecutive addresses for each availability zone,\n # such as 10.1.16.0/20 .\n cidr_block = cidrsubnet(aws_vpc.main.cidr_block, 4, count.index+1)\n}\n'}}]);
//# sourceMappingURL=1594.js.map

1
1594.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1594.js","mappings":"8IAAA,k7C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.hcl.txt"],"sourcesContent":["export default \"terraform {\\n required_providers {\\n aws = {\\n source = \\\"hashicorp/aws\\\"\\n version = \\\"~> 1.0.4\\\"\\n }\\n }\\n}\\n\\nvariable \\\"aws_region\\\" {}\\n\\nvariable \\\"base_cidr_block\\\" {\\n description = \\\"A /16 CIDR range definition, such as 10.1.0.0/16, that the VPC will use\\\"\\n default = \\\"10.1.0.0/16\\\"\\n}\\n\\nvariable \\\"availability_zones\\\" {\\n description = \\\"A list of availability zones in which to create subnets\\\"\\n type = list(string)\\n}\\n\\nprovider \\\"aws\\\" {\\n region = var.aws_region\\n}\\n\\nresource \\\"aws_vpc\\\" \\\"main\\\" {\\n # Referencing the base_cidr_block variable allows the network address\\n # to be changed without modifying the configuration.\\n cidr_block = var.base_cidr_block\\n}\\n\\nresource \\\"aws_subnet\\\" \\\"az\\\" {\\n # Create one subnet for each given availability zone.\\n count = length(var.availability_zones)\\n\\n # For each subnet, use one of the specified availability zones.\\n availability_zone = var.availability_zones[count.index]\\n\\n # By referencing the aws_vpc.main object, Terraform knows that the subnet\\n # must be created only after the VPC is created.\\n vpc_id = aws_vpc.main.id\\n\\n # Built-in functions and operators can be used for simple transformations of\\n # values, such as computing a subnet address. Here we create a /20 prefix for\\n # each subnet, using consecutive addresses for each availability zone,\\n # such as 10.1.16.0/20 .\\n cidr_block = cidrsubnet(aws_vpc.main.cidr_block, 4, count.index+1)\\n}\\n\";"],"names":[],"sourceRoot":""}

2
1756.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1756],{1756:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});const a='Auto mode detect the tag syntax mode automatically.\nTry exchanging the order of the next two lines and see what happens!\n\n[#ftl stripText=false]\n<#ftl stripText=false>\n\n<#-- Free marker demo --\x3e\n\n<#comment>\nThis demonstrates the FreeMarker language. The default theme is not very\ncolorful and displays many different token types in the same color, but keep in\nmind that you can define your own theme (or extend an existing one).\n\nNote that free marker actually defines 6 similar but different syntax modes:\n\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\n\nIn auto mode, the first tag determines the tag syntax. You can use the language\nIDs "freemarker.tag-bracket.interpolation-dollar" etc. to force a specific mode.\n\nThe default FreeMarker mode is Angle/Dollar.\n</#comment>\n\n<#macro greet name>\n <font size="+2">Hello [=name]!</font>\n</#macro>\n\n<#macro border>\n <table border=4 cellspacing=0 cellpadding=4><tr><td>\n <#nested>\n </tr></td></table>\n</#macro>\n\n<#function avg x y>\n <#return (x + y) / 2>\n</#function>\n\n<#assign user = "Juila Smith">\n<#assign animals = [{"name": "Tanuki", "price": 200}, {"name": "Phoenix", "price": 1111}]>\n\n<html>\n<head>\n <title>Welcome!</title>\n</head>\n<body>\n <#-- Greet the user with his/her name --\x3e\n <h1>\n \t<@greet user />\n </h1>\n\n <p>We have these animals:\n\n <ul>\n <#list animals as animal>\n <li>[=animal.name] for [=animal.price] Euros\n </#list>\n </ul>\n\n <@border>The bordered text</@border>\n\n The average of 35 and 49 is [=avg(35, 49)].\n\n</body>\n</html>\n'}}]);
//# sourceMappingURL=1756.js.map

1
1756.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"1756.js","mappings":"8IAAA,4oD","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.freemarker2.tag-auto.interpolation-bracket.txt"],"sourcesContent":["export default \"Auto mode detect the tag syntax mode automatically.\\nTry exchanging the order of the next two lines and see what happens!\\n\\n[#ftl stripText=false]\\n<#ftl stripText=false>\\n\\n<#-- Free marker demo -->\\n\\n<#comment>\\nThis demonstrates the FreeMarker language. The default theme is not very\\ncolorful and displays many different token types in the same color, but keep in\\nmind that you can define your own theme (or extend an existing one).\\n\\nNote that free marker actually defines 6 similar but different syntax modes:\\n\\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\\n\\nIn auto mode, the first tag determines the tag syntax. You can use the language\\nIDs \\\"freemarker.tag-bracket.interpolation-dollar\\\" etc. to force a specific mode.\\n\\nThe default FreeMarker mode is Angle/Dollar.\\n</#comment>\\n\\n<#macro greet name>\\n <font size=\\\"+2\\\">Hello [=name]!</font>\\n</#macro>\\n\\n<#macro border>\\n <table border=4 cellspacing=0 cellpadding=4><tr><td>\\n <#nested>\\n </tr></td></table>\\n</#macro>\\n\\n<#function avg x y>\\n <#return (x + y) / 2>\\n</#function>\\n\\n<#assign user = \\\"Juila Smith\\\">\\n<#assign animals = [{\\\"name\\\": \\\"Tanuki\\\", \\\"price\\\": 200}, {\\\"name\\\": \\\"Phoenix\\\", \\\"price\\\": 1111}]>\\n\\n<html>\\n<head>\\n <title>Welcome!</title>\\n</head>\\n<body>\\n <#-- Greet the user with his/her name -->\\n <h1>\\n \\t<@greet user />\\n </h1>\\n\\n <p>We have these animals:\\n\\n <ul>\\n <#list animals as animal>\\n <li>[=animal.name] for [=animal.price] Euros\\n </#list>\\n </ul>\\n\\n <@border>The bordered text</@border>\\n\\n The average of 35 and 49 is [=avg(35, 49)].\\n\\n</body>\\n</html>\\n\";"],"names":[],"sourceRoot":""}

2
2055.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2055],{2055:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r='$SelectedObjectNames=@();\n$XenCenterNodeSelected = 0;\n#the object info array contains hashmaps, each of which represent a parameter set and describe a target in the XenCenter resource list\nforeach($parameterSet in $ObjInfoArray)\n{\n\tif ($parameterSet["class"] -eq "blank")\n\t{\n\t\t#When the XenCenter node is selected a parameter set is created for each of your connected servers with the class and objUuid keys marked as blank\n\t\tif ($XenCenterNodeSelected)\n\t\t{\n\t\t\tcontinue\n\t\t}\n\t\t$XenCenterNodeSelected = 1;\n\t\t$SelectedObjectNames += "XenCenter"\n\t}\n\telseif ($parameterSet["sessionRef"] -eq "null")\n\t{\n\t\t#When a disconnected server is selected there is no session information, we get null for everything except class\n\t}\n\t\t$SelectedObjectNames += "a disconnected server"\n\telse\n\t{\n\t\tConnect-XenServer -url $parameterSet["url"] -opaqueref $parameterSet["sessionRef"]\n\t\t#Use $class to determine which server objects to get\n\t\t#-properties allows us to filter the results to just include the selected object\n\t\t$exp = "Get-XenServer:{0} -properties @{{uuid=\'{1}\'}}" -f $parameterSet["class"], $parameterSet["objUuid"]\n\t\t$obj = Invoke-Expression $exp\n\t\t$SelectedObjectNames += $obj.name_label;\n\t} \n}'}}]);
//# sourceMappingURL=2055.js.map

1
2055.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2055.js","mappings":"8IAAA,mvC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.powershell.txt"],"sourcesContent":["export default \"$SelectedObjectNames=@();\\n$XenCenterNodeSelected = 0;\\n#the object info array contains hashmaps, each of which represent a parameter set and describe a target in the XenCenter resource list\\nforeach($parameterSet in $ObjInfoArray)\\n{\\n\\tif ($parameterSet[\\\"class\\\"] -eq \\\"blank\\\")\\n\\t{\\n\\t\\t#When the XenCenter node is selected a parameter set is created for each of your connected servers with the class and objUuid keys marked as blank\\n\\t\\tif ($XenCenterNodeSelected)\\n\\t\\t{\\n\\t\\t\\tcontinue\\n\\t\\t}\\n\\t\\t$XenCenterNodeSelected = 1;\\n\\t\\t$SelectedObjectNames += \\\"XenCenter\\\"\\n\\t}\\n\\telseif ($parameterSet[\\\"sessionRef\\\"] -eq \\\"null\\\")\\n\\t{\\n\\t\\t#When a disconnected server is selected there is no session information, we get null for everything except class\\n\\t}\\n\\t\\t$SelectedObjectNames += \\\"a disconnected server\\\"\\n\\telse\\n\\t{\\n\\t\\tConnect-XenServer -url $parameterSet[\\\"url\\\"] -opaqueref $parameterSet[\\\"sessionRef\\\"]\\n\\t\\t#Use $class to determine which server objects to get\\n\\t\\t#-properties allows us to filter the results to just include the selected object\\n\\t\\t$exp = \\\"Get-XenServer:{0} -properties @{{uuid='{1}'}}\\\" -f $parameterSet[\\\"class\\\"], $parameterSet[\\\"objUuid\\\"]\\n\\t\\t$obj = Invoke-Expression $exp\\n\\t\\t$SelectedObjectNames += $obj.name_label;\\n\\t} \\n}\";"],"names":[],"sourceRoot":""}

2
2090.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2090],{2090:(e,a,n)=>{n.r(a),n.d(a,{default:()=>t});const t="LEX Paid Escrow.\nLEXON: 0.2.20\nCOMMENT: 3.f - an escrow that is controlled by a third party for a fee.\n\n“Payer” is a person.\n“Payee” is a person.\n“Arbiter” is a person.\n“Fee” is an amount.\n\nThe Payer pays an Amount into escrow,\nappoints the Payee,\nappoints the Arbiter,\nand also fixes the Fee.\n\nCLAUSE: Pay Out.\nThe Arbiter may pay from escrow the Fee to themselves,\nand afterwards pay the remainder of the escrow to the Payee.\n\nCLAUSE: Pay Back.\nThe Arbiter may pay from escrow the Fee to themselves,\nand afterwards return the remainder of the escrow to the Payer.\n"}}]);
//# sourceMappingURL=2090.js.map

1
2090.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2090.js","mappings":"8IAAA,qlB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.lex.txt"],"sourcesContent":["export default \"LEX Paid Escrow.\\nLEXON: 0.2.20\\nCOMMENT: 3.f - an escrow that is controlled by a third party for a fee.\\n\\n“Payer” is a person.\\n“Payee” is a person.\\n“Arbiter” is a person.\\n“Fee” is an amount.\\n\\nThe Payer pays an Amount into escrow,\\nappoints the Payee,\\nappoints the Arbiter,\\nand also fixes the Fee.\\n\\nCLAUSE: Pay Out.\\nThe Arbiter may pay from escrow the Fee to themselves,\\nand afterwards pay the remainder of the escrow to the Payee.\\n\\nCLAUSE: Pay Back.\\nThe Arbiter may pay from escrow the Fee to themselves,\\nand afterwards return the remainder of the escrow to the Payer.\\n\";"],"names":[],"sourceRoot":""}

2
2365.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2365],{2365:(t,n,e)=>{e.r(n),e.d(n,{default:()=>r});const r='<?php\n// The next line contains a syntax error:\nif () {\n\treturn "The parser recovers from this type of syntax error";\n}\n?>\n<html>\n<head>\n\t<title>Example page</title>\n</head>\n\n<body>\n\n<script type="text/javascript">\n\t// Some PHP embedded inside JS\n\t// Generated <?=date(\'l, F jS, Y\')?>\n\t\n\tvar server_token = <?=rand(5, 10000)?>\n\tif (typeof server_token === \'number\') {\n\t\talert(\'token: \' + server_token);\n\t}\n<\/script>\n\n<div>\nHello\n<? if (isset($user)) { ?>\n\t<b><?=$user?></b>\n<? } else { ?>\n\t<i>guest</i>\n<? } ?>\n!\n</div>\n\n<?php\n\n\t/* Example PHP file\n\tmultiline comment\n\t*/\n\n\t$cards = array("ah", "ac", "ad", "as",\n\t\t"2h", "2c", "2d", "2s",\n\t\t"3h", "3c", "3d", "3s",\n\t\t"4h", "4c", "4d", "4s",\n\t\t"5h", "5c", "5d", "5s",\n\t\t"6h", "6c", "6d", "6s",\n\t\t"7h", "7c", "7d", "7s",\n\t\t"8h", "8c", "8d", "8s",\n\t\t"9h", "9c", "9d", "9s",\n\t\t"th", "tc", "td", "ts",\n\t\t"jh", "jc", "jd", "js",\n\t\t"qh", "qc", "qd", "qs",\n\t\t"kh", "kc", "kd", "ks");\n\n\tsrand(time());\n\n\tfor($i = 0; $i < 52; $i++) {\n\t\t$count = count($cards);\n\t\t$random = (rand()%$count);\n\n\t\tif($cards[$random] == "") {\n\t\t\t$i--;\n\t\t} else {\n\t\t\t$deck[] = $cards[$random];\n\t\t\t$cards[$random] = "";\n\t\t}\n\t}\n\n\tsrand(time());\n\t$starting_point = (rand()%51);\n\tprint("Starting point for cut cards is: $starting_point<p>");\n\n\t// display shuffled cards (EXAMPLE ONLY)\n\tfor ($index = 0; $index < 52; $index++) {\n\t\tif ($starting_point == 52) { $starting_point = 0; }\n\t\tprint("Uncut Point: <strong>$deck[$index]</strong> ");\n\t\tprint("Starting Point: <strong>$deck[$starting_point]</strong><br>");\n\t\t$starting_point++;\n\t}\n?>\n\n</body>\n</html>'}}]);
//# sourceMappingURL=2365.js.map

1
2365.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2365.js","mappings":"8IAAA,4sD","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.php.txt"],"sourcesContent":["export default \"<?php\\n// The next line contains a syntax error:\\nif () {\\n\\treturn \\\"The parser recovers from this type of syntax error\\\";\\n}\\n?>\\n<html>\\n<head>\\n\\t<title>Example page</title>\\n</head>\\n\\n<body>\\n\\n<script type=\\\"text/javascript\\\">\\n\\t// Some PHP embedded inside JS\\n\\t// Generated <?=date('l, F jS, Y')?>\\n\\t\\n\\tvar server_token = <?=rand(5, 10000)?>\\n\\tif (typeof server_token === 'number') {\\n\\t\\talert('token: ' + server_token);\\n\\t}\\n</script>\\n\\n<div>\\nHello\\n<? if (isset($user)) { ?>\\n\\t<b><?=$user?></b>\\n<? } else { ?>\\n\\t<i>guest</i>\\n<? } ?>\\n!\\n</div>\\n\\n<?php\\n\\n\\t/* Example PHP file\\n\\tmultiline comment\\n\\t*/\\n\\n\\t$cards = array(\\\"ah\\\", \\\"ac\\\", \\\"ad\\\", \\\"as\\\",\\n\\t\\t\\\"2h\\\", \\\"2c\\\", \\\"2d\\\", \\\"2s\\\",\\n\\t\\t\\\"3h\\\", \\\"3c\\\", \\\"3d\\\", \\\"3s\\\",\\n\\t\\t\\\"4h\\\", \\\"4c\\\", \\\"4d\\\", \\\"4s\\\",\\n\\t\\t\\\"5h\\\", \\\"5c\\\", \\\"5d\\\", \\\"5s\\\",\\n\\t\\t\\\"6h\\\", \\\"6c\\\", \\\"6d\\\", \\\"6s\\\",\\n\\t\\t\\\"7h\\\", \\\"7c\\\", \\\"7d\\\", \\\"7s\\\",\\n\\t\\t\\\"8h\\\", \\\"8c\\\", \\\"8d\\\", \\\"8s\\\",\\n\\t\\t\\\"9h\\\", \\\"9c\\\", \\\"9d\\\", \\\"9s\\\",\\n\\t\\t\\\"th\\\", \\\"tc\\\", \\\"td\\\", \\\"ts\\\",\\n\\t\\t\\\"jh\\\", \\\"jc\\\", \\\"jd\\\", \\\"js\\\",\\n\\t\\t\\\"qh\\\", \\\"qc\\\", \\\"qd\\\", \\\"qs\\\",\\n\\t\\t\\\"kh\\\", \\\"kc\\\", \\\"kd\\\", \\\"ks\\\");\\n\\n\\tsrand(time());\\n\\n\\tfor($i = 0; $i < 52; $i++) {\\n\\t\\t$count = count($cards);\\n\\t\\t$random = (rand()%$count);\\n\\n\\t\\tif($cards[$random] == \\\"\\\") {\\n\\t\\t\\t$i--;\\n\\t\\t} else {\\n\\t\\t\\t$deck[] = $cards[$random];\\n\\t\\t\\t$cards[$random] = \\\"\\\";\\n\\t\\t}\\n\\t}\\n\\n\\tsrand(time());\\n\\t$starting_point = (rand()%51);\\n\\tprint(\\\"Starting point for cut cards is: $starting_point<p>\\\");\\n\\n\\t// display shuffled cards (EXAMPLE ONLY)\\n\\tfor ($index = 0; $index < 52; $index++) {\\n\\t\\tif ($starting_point == 52) { $starting_point = 0; }\\n\\t\\tprint(\\\"Uncut Point: <strong>$deck[$index]</strong> \\\");\\n\\t\\tprint(\\\"Starting Point: <strong>$deck[$starting_point]</strong><br>\\\");\\n\\t\\t$starting_point++;\\n\\t}\\n?>\\n\\n</body>\\n</html>\";"],"names":[],"sourceRoot":""}

2
264.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
2840.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2840],{2840:(n,e,s)=>{s.r(e),s.d(e,{default:()=>t});const t='Imports System\nImports System.Collections.Generic\n\nModule Module1\n\n Sub Main()\n Dim a As New M8Ball\n\n Do While True\n\n Dim q As String = ""\n Console.Write("ask me about the future... ")\n q = Console.ReadLine()\n\n If q.Trim <> "" Then\n Console.WriteLine("the answer is... {0}", a.getAnswer(q))\n Else\n Exit Do\n End If\n Loop\n\n End Sub\n\nEnd Module\n\nClass M8Ball\n\n Public Answers As System.Collections.Generic.Dictionary(Of Integer, String)\n\n Public Sub New()\n Answers = New System.Collections.Generic.Dictionary(Of Integer, String)\n Answers.Add(0, "It is certain")\n Answers.Add(1, "It is decidedly so")\n Answers.Add(2, "Without a doubt")\n Answers.Add(3, "Yes, definitely")\n Answers.Add(4, "You may rely on ")\n Answers.Add(5, "As I see it, yes")\n Answers.Add(6, "Most likely")\n Answers.Add(7, "Outlook good")\n Answers.Add(8, "Signs point to yes")\n Answers.Add(9, "Yes")\n Answers.Add(10, "Reply hazy, try again")\n Answers.Add(11, "Ask again later")\n Answers.Add(12, "Better not tell you now")\n Answers.Add(13, "Cannot predict now")\n Answers.Add(14, "Concentrate and ask again")\n Answers.Add(15, "Don\'t count on it")\n Answers.Add(16, "My reply is no")\n Answers.Add(17, "My sources say no")\n Answers.Add(18, "Outlook not so")\n Answers.Add(19, "Very doubtful")\n End Sub\n\n Public Function getAnswer(theQuestion As String) As String\n Dim r As New Random\n Return Answers(r.Next(0, 19))\n End Function\n\nEnd Class\n'}}]);
//# sourceMappingURL=2840.js.map

1
2840.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2840.js","mappings":"8IAAA,suD","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.vb.txt"],"sourcesContent":["export default \"Imports System\\nImports System.Collections.Generic\\n\\nModule Module1\\n\\n Sub Main()\\n Dim a As New M8Ball\\n\\n Do While True\\n\\n Dim q As String = \\\"\\\"\\n Console.Write(\\\"ask me about the future... \\\")\\n q = Console.ReadLine()\\n\\n If q.Trim <> \\\"\\\" Then\\n Console.WriteLine(\\\"the answer is... {0}\\\", a.getAnswer(q))\\n Else\\n Exit Do\\n End If\\n Loop\\n\\n End Sub\\n\\nEnd Module\\n\\nClass M8Ball\\n\\n Public Answers As System.Collections.Generic.Dictionary(Of Integer, String)\\n\\n Public Sub New()\\n Answers = New System.Collections.Generic.Dictionary(Of Integer, String)\\n Answers.Add(0, \\\"It is certain\\\")\\n Answers.Add(1, \\\"It is decidedly so\\\")\\n Answers.Add(2, \\\"Without a doubt\\\")\\n Answers.Add(3, \\\"Yes, definitely\\\")\\n Answers.Add(4, \\\"You may rely on \\\")\\n Answers.Add(5, \\\"As I see it, yes\\\")\\n Answers.Add(6, \\\"Most likely\\\")\\n Answers.Add(7, \\\"Outlook good\\\")\\n Answers.Add(8, \\\"Signs point to yes\\\")\\n Answers.Add(9, \\\"Yes\\\")\\n Answers.Add(10, \\\"Reply hazy, try again\\\")\\n Answers.Add(11, \\\"Ask again later\\\")\\n Answers.Add(12, \\\"Better not tell you now\\\")\\n Answers.Add(13, \\\"Cannot predict now\\\")\\n Answers.Add(14, \\\"Concentrate and ask again\\\")\\n Answers.Add(15, \\\"Don't count on it\\\")\\n Answers.Add(16, \\\"My reply is no\\\")\\n Answers.Add(17, \\\"My sources say no\\\")\\n Answers.Add(18, \\\"Outlook not so\\\")\\n Answers.Add(19, \\\"Very doubtful\\\")\\n End Sub\\n\\n Public Function getAnswer(theQuestion As String) As String\\n Dim r As New Random\\n Return Answers(r.Next(0, 19))\\n End Function\\n\\nEnd Class\\n\";"],"names":[],"sourceRoot":""}

2
2873.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2873],{2873:(n,t,o)=>{o.r(t),o.d(t,{default:()=>c});const c="F0 := IMDB.File_actors;\nCountActors := RECORD\nF0.ActorName;\nUNSIGNED C := COUNT(GROUP);\nEND;\nMoviesIn := TABLE(F0,CountActors,ActorName);\nOUTPUT(TOPN(MoviesIn,100,-C));\n"}}]);
//# sourceMappingURL=2873.js.map

1
2873.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2873.js","mappings":"8IAAA,0L","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.ecl.txt"],"sourcesContent":["export default \"F0 := IMDB.File_actors;\\nCountActors := RECORD\\nF0.ActorName;\\nUNSIGNED C := COUNT(GROUP);\\nEND;\\nMoviesIn := TABLE(F0,CountActors,ActorName);\\nOUTPUT(TOPN(MoviesIn,100,-C));\\n\";"],"names":[],"sourceRoot":""}

2
2938.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2938],{2938:(e,n,i)=>{i.r(n),i.d(n,{default:()=>t});const t='#!/bin/bash\n# Simple line count example, using bash\n#\n# Bash tutorial: http://linuxconfig.org/Bash_scripting_Tutorial#8-2-read-file-into-bash-array\n# My scripting link: http://www.macs.hw.ac.uk/~hwloidl/docs/index.html#scripting\n#\n# Usage: ./line_count.sh file\n# -----------------------------------------------------------------------------\n\n# Link filedescriptor 10 with stdin\nexec 10<&0\n# stdin replaced with a file supplied as a first argument\nexec < $1\n# remember the name of the input file\nin=$1\n\n# init\nfile="current_line.txt"\nlet count=0\n\n# this while loop iterates over all lines of the file\nwhile read LINE\ndo\n # increase line counter\n ((count++))\n # write current line to a tmp file with name $file (not needed for counting)\n echo $LINE > $file\n # this checks the return code of echo (not needed for writing; just for demo)\n if [ $? -ne 0 ]\n then echo "Error in writing to file ${file}; check its permissions!"\n fi\ndone\n\necho "Number of lines: $count"\necho "The last line of the file is: `cat ${file}`"\n\n# Note: You can achieve the same by just using the tool wc like this\necho "Expected number of lines: `wc -l $in`"\n\n# restore stdin from filedescriptor 10\n# and close filedescriptor 10\nexec 0<&10 10<&-'}}]);
//# sourceMappingURL=2938.js.map

1
2938.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2938.js","mappings":"8IAAA,0wC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.shell.txt"],"sourcesContent":["export default \"#!/bin/bash\\n# Simple line count example, using bash\\n#\\n# Bash tutorial: http://linuxconfig.org/Bash_scripting_Tutorial#8-2-read-file-into-bash-array\\n# My scripting link: http://www.macs.hw.ac.uk/~hwloidl/docs/index.html#scripting\\n#\\n# Usage: ./line_count.sh file\\n# -----------------------------------------------------------------------------\\n\\n# Link filedescriptor 10 with stdin\\nexec 10<&0\\n# stdin replaced with a file supplied as a first argument\\nexec < $1\\n# remember the name of the input file\\nin=$1\\n\\n# init\\nfile=\\\"current_line.txt\\\"\\nlet count=0\\n\\n# this while loop iterates over all lines of the file\\nwhile read LINE\\ndo\\n # increase line counter\\n ((count++))\\n # write current line to a tmp file with name $file (not needed for counting)\\n echo $LINE > $file\\n # this checks the return code of echo (not needed for writing; just for demo)\\n if [ $? -ne 0 ]\\n then echo \\\"Error in writing to file ${file}; check its permissions!\\\"\\n fi\\ndone\\n\\necho \\\"Number of lines: $count\\\"\\necho \\\"The last line of the file is: `cat ${file}`\\\"\\n\\n# Note: You can achieve the same by just using the tool wc like this\\necho \\\"Expected number of lines: `wc -l $in`\\\"\\n\\n# restore stdin from filedescriptor 10\\n# and close filedescriptor 10\\nexec 0<&10 10<&-\";"],"names":[],"sourceRoot":""}

2
2942.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2942],{2942:(n,e,l)=>{l.r(e),l.d(e,{default:()=>t});const t='// http://www.ats-lang.org/\n(* Say Hello! once *)\nval () = print"Hello!\\n"\n//\n(* Say Hello! 3 times *)\nval () = 3*delay(print"Hello!")\nval () = print_newline((*void*))\n//\n\n//\n(* Build a list of 3 *)\nval xs = $list{int}(0, 1, 2)\n//\nval x0 = xs[0] // legal\nval x1 = xs[1] // legal\nval x2 = xs[2] // legal\nval x3 = xs[3] // illegal\n//\n\n//\nextern\nfun{} f0 (): int\nextern\nfun{} f1 (int): int\nextern\nfun{} repeat_f0f1 (int): int\n//\nimplement\n{}(*tmp*)\nrepeat_f0f1(n) =\n if n = 0\n then f0()\n else f1(repeat_f0f1(n-1))\n // end of [if]\n//\nfun\ntimes (\n m:int, n:int\n) : int = // m*n\n repeat_f0f1 (m) where\n{\n implement f0<> () = 0\n implement f1<> (x) = x + n\n}\n//\nfun\npower (\n m:int, n:int\n) : int = // m^n\n repeat_f0f1 (n) where\n{\n implement f0<> () = 1\n implement f1<> (x) = m * x\n}\n//\nval () =\nprintln! ("5*5 = ", times(5,5))\nval () =\nprintln! ("5^2 = ", power(5,2))\nval () =\nprintln! ("2^10 = ", power(2,10))\nval () =\nprintln! ("3^10 = ", power(3,10))\n//\n'}}]);
//# sourceMappingURL=2942.js.map

1
2942.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2942.js","mappings":"8IAAA,ghC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.postiats.txt"],"sourcesContent":["export default \"// http://www.ats-lang.org/\\n(* Say Hello! once *)\\nval () = print\\\"Hello!\\\\n\\\"\\n//\\n(* Say Hello! 3 times *)\\nval () = 3*delay(print\\\"Hello!\\\")\\nval () = print_newline((*void*))\\n//\\n\\n//\\n(* Build a list of 3 *)\\nval xs = $list{int}(0, 1, 2)\\n//\\nval x0 = xs[0] // legal\\nval x1 = xs[1] // legal\\nval x2 = xs[2] // legal\\nval x3 = xs[3] // illegal\\n//\\n\\n//\\nextern\\nfun{} f0 (): int\\nextern\\nfun{} f1 (int): int\\nextern\\nfun{} repeat_f0f1 (int): int\\n//\\nimplement\\n{}(*tmp*)\\nrepeat_f0f1(n) =\\n if n = 0\\n then f0()\\n else f1(repeat_f0f1(n-1))\\n // end of [if]\\n//\\nfun\\ntimes (\\n m:int, n:int\\n) : int = // m*n\\n repeat_f0f1 (m) where\\n{\\n implement f0<> () = 0\\n implement f1<> (x) = x + n\\n}\\n//\\nfun\\npower (\\n m:int, n:int\\n) : int = // m^n\\n repeat_f0f1 (n) where\\n{\\n implement f0<> () = 1\\n implement f1<> (x) = m * x\\n}\\n//\\nval () =\\nprintln! (\\\"5*5 = \\\", times(5,5))\\nval () =\\nprintln! (\\\"5^2 = \\\", power(5,2))\\nval () =\\nprintln! (\\\"2^10 = \\\", power(2,10))\\nval () =\\nprintln! (\\\"3^10 = \\\", power(3,10))\\n//\\n\";"],"names":[],"sourceRoot":""}

2
2981.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2981],{2981:(n,t,e)=>{e.r(t),e.d(t,{default:()=>o});const o="@base: #f938ab;\n\n.box-shadow(@style, @c) when (iscolor(@c)) {\n\tborder-radius: @style @c;\n}\n\n.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {\n\t.box-shadow(@style, rgba(0, 0, 0, @alpha));\n}\n\n.box { \n\tcolor: saturate(@base, 5%);\n\tborder-color: lighten(@base, 30%);\n\t\n\tdiv {\n\t\t.box-shadow((0 0 5px), 30%);\n\t}\n}\n\n#header {\n\th1 {\n\t\tfont-size: 26px;\n\t\tfont-weight: bold;\n\t}\n\t\n\tp { font-size: 12px;\n\t\ta { text-decoration: none;\n\t\t\t&:hover { border-width: 1px }\n\t\t}\n\t}\n}\n\n@the-border: 1px;\n@base-color: #111;\n@red: #842210;\n\n#header {\n\tcolor: (@base-color * 3);\n\tborder-left: @the-border;\n\tborder-right: (@the-border * 2);\n}\n\n#footer {\n\tcolor: (@base-color + #003300);\n\tborder-color: desaturate(@red, 10%);\n}\n"}}]);
//# sourceMappingURL=2981.js.map

1
2981.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"2981.js","mappings":"8IAAA,myB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.less.txt"],"sourcesContent":["export default \"@base: #f938ab;\\n\\n.box-shadow(@style, @c) when (iscolor(@c)) {\\n\\tborder-radius: @style @c;\\n}\\n\\n.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {\\n\\t.box-shadow(@style, rgba(0, 0, 0, @alpha));\\n}\\n\\n.box { \\n\\tcolor: saturate(@base, 5%);\\n\\tborder-color: lighten(@base, 30%);\\n\\t\\n\\tdiv {\\n\\t\\t.box-shadow((0 0 5px), 30%);\\n\\t}\\n}\\n\\n#header {\\n\\th1 {\\n\\t\\tfont-size: 26px;\\n\\t\\tfont-weight: bold;\\n\\t}\\n\\t\\n\\tp { font-size: 12px;\\n\\t\\ta { text-decoration: none;\\n\\t\\t\\t&:hover { border-width: 1px }\\n\\t\\t}\\n\\t}\\n}\\n\\n@the-border: 1px;\\n@base-color: #111;\\n@red: #842210;\\n\\n#header {\\n\\tcolor: (@base-color * 3);\\n\\tborder-left: @the-border;\\n\\tborder-right: (@the-border * 2);\\n}\\n\\n#footer {\\n\\tcolor: (@base-color + #003300);\\n\\tborder-color: desaturate(@red, 10%);\\n}\\n\";"],"names":[],"sourceRoot":""}

2
3100.js Normal file

File diff suppressed because one or more lines are too long

1
3100.js.map Normal file

File diff suppressed because one or more lines are too long

2
3129.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3129],{3129:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});const t='<#ftl stripText=false>\n\n<#-- Free marker demo --\x3e\n\n<#comment>\nThis demonstrates the FreeMarker language. The default theme is not very\ncolorful and displays many different token types in the same color, but keep in\nmind that you can define your own theme (or extend an existing one).\n\nNote that free marker actually defines 6 similar but different syntax modes:\n\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\n\nIn auto mode, the first tag determines the tag syntax. You can use the language\nIDs "freemarker.tag-bracket.interpolation-dollar" etc. to force a specific mode.\n\nThe default FreeMarker mode is Angle/Dollar.\n</#comment>\n\n<#macro greet name>\n <font size="+2">Hello ${name}!</font>\n</#macro>\n\n<#macro border>\n <table border=4 cellspacing=0 cellpadding=4><tr><td>\n <#nested>\n </tr></td></table>\n</#macro>\n\n<#function avg x y>\n <#return (x + y) / 2>\n</#function>\n\n<#assign user = "Juila Smith">\n<#assign animals = [{"name": "Tanuki", "price": 200}, {"name": "Phoenix", "price": 1111}]>\n\n<html>\n<head>\n <title>Welcome!</title>\n</head>\n<body>\n <#-- Greet the user with his/her name --\x3e\n <h1>\n \t<@greet user />\n </h1>\n\n <p>We have these animals:\n\n <ul>\n <#list animals as animal>\n <li>${animal.name} for ${animal.price} Euros\n </#list>\n </ul>\n\n <@border>The bordered text</@border>\n\n The average of 35 and 49 is ${avg(35, 49)}.\n\n</body>\n</html>\n'}}]);
//# sourceMappingURL=3129.js.map

1
3129.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3129.js","mappings":"8IAAA,u/C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.freemarker2.tag-angle.interpolation-dollar.txt"],"sourcesContent":["export default \"<#ftl stripText=false>\\n\\n<#-- Free marker demo -->\\n\\n<#comment>\\nThis demonstrates the FreeMarker language. The default theme is not very\\ncolorful and displays many different token types in the same color, but keep in\\nmind that you can define your own theme (or extend an existing one).\\n\\nNote that free marker actually defines 6 similar but different syntax modes:\\n\\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\\n\\nIn auto mode, the first tag determines the tag syntax. You can use the language\\nIDs \\\"freemarker.tag-bracket.interpolation-dollar\\\" etc. to force a specific mode.\\n\\nThe default FreeMarker mode is Angle/Dollar.\\n</#comment>\\n\\n<#macro greet name>\\n <font size=\\\"+2\\\">Hello ${name}!</font>\\n</#macro>\\n\\n<#macro border>\\n <table border=4 cellspacing=0 cellpadding=4><tr><td>\\n <#nested>\\n </tr></td></table>\\n</#macro>\\n\\n<#function avg x y>\\n <#return (x + y) / 2>\\n</#function>\\n\\n<#assign user = \\\"Juila Smith\\\">\\n<#assign animals = [{\\\"name\\\": \\\"Tanuki\\\", \\\"price\\\": 200}, {\\\"name\\\": \\\"Phoenix\\\", \\\"price\\\": 1111}]>\\n\\n<html>\\n<head>\\n <title>Welcome!</title>\\n</head>\\n<body>\\n <#-- Greet the user with his/her name -->\\n <h1>\\n \\t<@greet user />\\n </h1>\\n\\n <p>We have these animals:\\n\\n <ul>\\n <#list animals as animal>\\n <li>${animal.name} for ${animal.price} Euros\\n </#list>\\n </ul>\\n\\n <@border>The bordered text</@border>\\n\\n The average of 35 and 49 is ${avg(35, 49)}.\\n\\n</body>\\n</html>\\n\";"],"names":[],"sourceRoot":""}

2
3251.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3251],{3251:(n,e,r)=>{r.r(e),r.d(e,{default:()=>a});const a=";;; make-matrix creates a matrix (a vector of vectors).\n(define make-matrix\n (lambda (rows columns)\n (do ((m (make-vector rows))\n (i 0 (+ i 1)))\n ((= i rows) m)\n (vector-set! m i (make-vector columns)))))\n\n;;; matrix? checks to see if its argument is a matrix.\n;;; It isn't foolproof, but it's generally good enough.\n(define matrix?\n (lambda (x)\n (and (vector? x)\n (> (vector-length x) 0)\n (vector? (vector-ref x 0)))))\n\n;; matrix-rows returns the number of rows in a matrix.\n(define matrix-rows\n (lambda (x)\n (vector-length x)))\n\n;; matrix-columns returns the number of columns in a matrix.\n(define matrix-columns\n (lambda (x)\n (vector-length (vector-ref x 0))))\n\n;;; matrix-ref returns the jth element of the ith row.\n(define matrix-ref\n (lambda (m i j)\n (vector-ref (vector-ref m i) j)))\n\n;;; matrix-set! changes the jth element of the ith row.\n(define matrix-set!\n (lambda (m i j x)\n (vector-set! (vector-ref m i) j x)))\n\n;;; mul is the generic matrix/scalar multiplication procedure\n(define mul\n (lambda (x y)\n ;; mat-sca-mul multiplies a matrix by a scalar.\n (define mat-sca-mul\n (lambda (m x)\n (let* ((nr (matrix-rows m))\n (nc (matrix-columns m))\n (r (make-matrix nr nc)))\n (do ((i 0 (+ i 1)))\n ((= i nr) r)\n (do ((j 0 (+ j 1)))\n ((= j nc))\n (matrix-set! r i j\n (* x (matrix-ref m i j))))))))\n\n ;; mat-mat-mul multiplies one matrix by another, after verifying\n ;; that the first matrix has as many columns as the second\n ;; matrix has rows.\n (define mat-mat-mul\n (lambda (m1 m2)\n (let* ((nr1 (matrix-rows m1))\n (nr2 (matrix-rows m2))\n (nc2 (matrix-columns m2))\n (r (make-matrix nr1 nc2)))\n (if (not (= (matrix-columns m1) nr2))\n (match-error m1 m2))\n (do ((i 0 (+ i 1)))\n ((= i nr1) r)\n (do ((j 0 (+ j 1)))\n ((= j nc2))\n (do ((k 0 (+ k 1))\n (a 0\n (+ a\n (* (matrix-ref m1 i k)\n (matrix-ref m2 k j)))))\n ((= k nr2)\n (matrix-set! r i j a))))))))\n\n ;; type-error is called to complain when mul receives an invalid\n ;; type of argument.\n (define type-error\n (lambda (what)\n (error 'mul\n \"~s is not a number or matrix\"\n what)))\n\n ;; match-error is called to complain when mul receives a pair of\n ;; incompatible arguments.\n (define match-error\n (lambda (what1 what2)\n (error 'mul\n \"~s and ~s are incompatible operands\"\n what1\n what2)))\n\n ;; body of mul; dispatch based on input types\n (cond\n ((number? x)\n (cond\n ((number? y) (* x y))\n ((matrix? y) (mat-sca-mul y x))\n (else (type-error y))))\n ((matrix? x)\n (cond\n ((number? y) (mat-sca-mul x y))\n ((matrix? y) (mat-mat-mul x y))\n (else (type-error y))))\n (else (type-error x)))))"}}]);
//# sourceMappingURL=3251.js.map

1
3251.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3251.js","mappings":"8IAAA,81G","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.scheme.txt"],"sourcesContent":["export default \";;; make-matrix creates a matrix (a vector of vectors).\\n(define make-matrix\\n (lambda (rows columns)\\n (do ((m (make-vector rows))\\n (i 0 (+ i 1)))\\n ((= i rows) m)\\n (vector-set! m i (make-vector columns)))))\\n\\n;;; matrix? checks to see if its argument is a matrix.\\n;;; It isn't foolproof, but it's generally good enough.\\n(define matrix?\\n (lambda (x)\\n (and (vector? x)\\n (> (vector-length x) 0)\\n (vector? (vector-ref x 0)))))\\n\\n;; matrix-rows returns the number of rows in a matrix.\\n(define matrix-rows\\n (lambda (x)\\n (vector-length x)))\\n\\n;; matrix-columns returns the number of columns in a matrix.\\n(define matrix-columns\\n (lambda (x)\\n (vector-length (vector-ref x 0))))\\n\\n;;; matrix-ref returns the jth element of the ith row.\\n(define matrix-ref\\n (lambda (m i j)\\n (vector-ref (vector-ref m i) j)))\\n\\n;;; matrix-set! changes the jth element of the ith row.\\n(define matrix-set!\\n (lambda (m i j x)\\n (vector-set! (vector-ref m i) j x)))\\n\\n;;; mul is the generic matrix/scalar multiplication procedure\\n(define mul\\n (lambda (x y)\\n ;; mat-sca-mul multiplies a matrix by a scalar.\\n (define mat-sca-mul\\n (lambda (m x)\\n (let* ((nr (matrix-rows m))\\n (nc (matrix-columns m))\\n (r (make-matrix nr nc)))\\n (do ((i 0 (+ i 1)))\\n ((= i nr) r)\\n (do ((j 0 (+ j 1)))\\n ((= j nc))\\n (matrix-set! r i j\\n (* x (matrix-ref m i j))))))))\\n\\n ;; mat-mat-mul multiplies one matrix by another, after verifying\\n ;; that the first matrix has as many columns as the second\\n ;; matrix has rows.\\n (define mat-mat-mul\\n (lambda (m1 m2)\\n (let* ((nr1 (matrix-rows m1))\\n (nr2 (matrix-rows m2))\\n (nc2 (matrix-columns m2))\\n (r (make-matrix nr1 nc2)))\\n (if (not (= (matrix-columns m1) nr2))\\n (match-error m1 m2))\\n (do ((i 0 (+ i 1)))\\n ((= i nr1) r)\\n (do ((j 0 (+ j 1)))\\n ((= j nc2))\\n (do ((k 0 (+ k 1))\\n (a 0\\n (+ a\\n (* (matrix-ref m1 i k)\\n (matrix-ref m2 k j)))))\\n ((= k nr2)\\n (matrix-set! r i j a))))))))\\n\\n ;; type-error is called to complain when mul receives an invalid\\n ;; type of argument.\\n (define type-error\\n (lambda (what)\\n (error 'mul\\n \\\"~s is not a number or matrix\\\"\\n what)))\\n\\n ;; match-error is called to complain when mul receives a pair of\\n ;; incompatible arguments.\\n (define match-error\\n (lambda (what1 what2)\\n (error 'mul\\n \\\"~s and ~s are incompatible operands\\\"\\n what1\\n what2)))\\n\\n ;; body of mul; dispatch based on input types\\n (cond\\n ((number? x)\\n (cond\\n ((number? y) (* x y))\\n ((matrix? y) (mat-sca-mul y x))\\n (else (type-error y))))\\n ((matrix? x)\\n (cond\\n ((number? y) (mat-sca-mul x y))\\n ((matrix? y) (mat-mat-mul x y))\\n (else (type-error y))))\\n (else (type-error x)))))\";"],"names":[],"sourceRoot":""}

2
3388.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3388],{3388:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});const s='// We often need our programs to perform operations on\n// collections of data, like selecting all items that\n// satisfy a given predicate or mapping all items to a new\n// collection with a custom function.\n\n// In some languages it\'s idiomatic to use [generic](http://en.wikipedia.org/wiki/Generic_programming)\n// data structures and algorithms. Go does not support\n// generics; in Go it\'s common to provide collection\n// functions if and when they are specifically needed for\n// your program and data types.\n\n// Here are some example collection functions for slices\n// of `strings`. You can use these examples to build your\n// own functions. Note that in some cases it may be\n// clearest to just inline the collection-manipulating\n// code directly, instead of creating and calling a\n// helper function.\n\npackage main\n\nimport "strings"\nimport "fmt"\n\n// Returns the first index of the target string `t`, or\n// -1 if no match is found.\nfunc Index(vs []string, t string) int {\n for i, v := range vs {\n if v == t {\n return i\n }\n }\n return -1\n}\n\n// Returns `true` if the target string t is in the\n// slice.\nfunc Include(vs []string, t string) bool {\n return Index(vs, t) >= 0\n}\n\n// Returns `true` if one of the strings in the slice\n// satisfies the predicate `f`.\nfunc Any(vs []string, f func(string) bool) bool {\n for _, v := range vs {\n if f(v) {\n return true\n }\n }\n return false\n}\n\n// Returns `true` if all of the strings in the slice\n// satisfy the predicate `f`.\nfunc All(vs []string, f func(string) bool) bool {\n for _, v := range vs {\n if !f(v) {\n return false\n }\n }\n return true\n}\n\n// Returns a new slice containing all strings in the\n// slice that satisfy the predicate `f`.\nfunc Filter(vs []string, f func(string) bool) []string {\n vsf := make([]string, 0)\n for _, v := range vs {\n if f(v) {\n vsf = append(vsf, v)\n }\n }\n return vsf\n}\n\n// Returns a new slice containing the results of applying\n// the function `f` to each string in the original slice.\nfunc Map(vs []string, f func(string) string) []string {\n vsm := make([]string, len(vs))\n for i, v := range vs {\n vsm[i] = f(v)\n }\n return vsm\n}\n\nfunc main() {\n\n // Here we try out our various collection functions.\n var strs = []string{"peach", "apple", "pear", "plum"}\n\n fmt.Println(Index(strs, "pear"))\n\n fmt.Println(Include(strs, "grape"))\n\n fmt.Println(Any(strs, func(v string) bool {\n return strings.HasPrefix(v, "p")\n }))\n\n fmt.Println(All(strs, func(v string) bool {\n return strings.HasPrefix(v, "p")\n }))\n\n fmt.Println(Filter(strs, func(v string) bool {\n return strings.Contains(v, "e")\n }))\n\n // The above examples all used anonymous functions,\n // but you can also use named functions of the correct\n // type.\n fmt.Println(Map(strs, strings.ToUpper))\n\n}\n'}}]);
//# sourceMappingURL=3388.js.map

1
3388.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3388.js","mappings":"8IAAA,y/F","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.go.txt"],"sourcesContent":["export default \"// We often need our programs to perform operations on\\n// collections of data, like selecting all items that\\n// satisfy a given predicate or mapping all items to a new\\n// collection with a custom function.\\n\\n// In some languages it's idiomatic to use [generic](http://en.wikipedia.org/wiki/Generic_programming)\\n// data structures and algorithms. Go does not support\\n// generics; in Go it's common to provide collection\\n// functions if and when they are specifically needed for\\n// your program and data types.\\n\\n// Here are some example collection functions for slices\\n// of `strings`. You can use these examples to build your\\n// own functions. Note that in some cases it may be\\n// clearest to just inline the collection-manipulating\\n// code directly, instead of creating and calling a\\n// helper function.\\n\\npackage main\\n\\nimport \\\"strings\\\"\\nimport \\\"fmt\\\"\\n\\n// Returns the first index of the target string `t`, or\\n// -1 if no match is found.\\nfunc Index(vs []string, t string) int {\\n for i, v := range vs {\\n if v == t {\\n return i\\n }\\n }\\n return -1\\n}\\n\\n// Returns `true` if the target string t is in the\\n// slice.\\nfunc Include(vs []string, t string) bool {\\n return Index(vs, t) >= 0\\n}\\n\\n// Returns `true` if one of the strings in the slice\\n// satisfies the predicate `f`.\\nfunc Any(vs []string, f func(string) bool) bool {\\n for _, v := range vs {\\n if f(v) {\\n return true\\n }\\n }\\n return false\\n}\\n\\n// Returns `true` if all of the strings in the slice\\n// satisfy the predicate `f`.\\nfunc All(vs []string, f func(string) bool) bool {\\n for _, v := range vs {\\n if !f(v) {\\n return false\\n }\\n }\\n return true\\n}\\n\\n// Returns a new slice containing all strings in the\\n// slice that satisfy the predicate `f`.\\nfunc Filter(vs []string, f func(string) bool) []string {\\n vsf := make([]string, 0)\\n for _, v := range vs {\\n if f(v) {\\n vsf = append(vsf, v)\\n }\\n }\\n return vsf\\n}\\n\\n// Returns a new slice containing the results of applying\\n// the function `f` to each string in the original slice.\\nfunc Map(vs []string, f func(string) string) []string {\\n vsm := make([]string, len(vs))\\n for i, v := range vs {\\n vsm[i] = f(v)\\n }\\n return vsm\\n}\\n\\nfunc main() {\\n\\n // Here we try out our various collection functions.\\n var strs = []string{\\\"peach\\\", \\\"apple\\\", \\\"pear\\\", \\\"plum\\\"}\\n\\n fmt.Println(Index(strs, \\\"pear\\\"))\\n\\n fmt.Println(Include(strs, \\\"grape\\\"))\\n\\n fmt.Println(Any(strs, func(v string) bool {\\n return strings.HasPrefix(v, \\\"p\\\")\\n }))\\n\\n fmt.Println(All(strs, func(v string) bool {\\n return strings.HasPrefix(v, \\\"p\\\")\\n }))\\n\\n fmt.Println(Filter(strs, func(v string) bool {\\n return strings.Contains(v, \\\"e\\\")\\n }))\\n\\n // The above examples all used anonymous functions,\\n // but you can also use named functions of the correct\\n // type.\\n fmt.Println(Map(strs, strings.ToUpper))\\n\\n}\\n\";"],"names":[],"sourceRoot":""}

2
3391.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3391],{3391:(n,e,o)=>{o.r(e),o.d(e,{default:()=>E});const E="CREATE TABLE dbo.EmployeePhoto\n(\n EmployeeId INT NOT NULL PRIMARY KEY,\n Photo VARBINARY(MAX) FILESTREAM NULL,\n MyRowGuidColumn UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL\n UNIQUE DEFAULT NEWID()\n);\n\nGO\n\n/*\ntext_of_comment\n/* nested comment */\n*/\n\n-- line comment\n\nCREATE NONCLUSTERED INDEX IX_WorkOrder_ProductID\n ON Production.WorkOrder(ProductID)\n WITH (FILLFACTOR = 80,\n PAD_INDEX = ON,\n DROP_EXISTING = ON);\nGO\n\nWHILE (SELECT AVG(ListPrice) FROM Production.Product) < $300\nBEGIN\n UPDATE Production.Product\n SET ListPrice = ListPrice * 2\n SELECT MAX(ListPrice) FROM Production.Product\n IF (SELECT MAX(ListPrice) FROM Production.Product) > $500\n BREAK\n ELSE\n CONTINUE\nEND\nPRINT 'Too much for the market to bear';\n\nMERGE INTO Sales.SalesReason AS [Target]\nUSING (VALUES ('Recommendation','Other'), ('Review', 'Marketing'), ('Internet', 'Promotion'))\n AS [Source] ([NewName], NewReasonType)\nON [Target].[Name] = [Source].[NewName]\nWHEN MATCHED\nTHEN UPDATE SET ReasonType = [Source].NewReasonType\nWHEN NOT MATCHED BY TARGET\nTHEN INSERT ([Name], ReasonType) VALUES ([NewName], NewReasonType)\nOUTPUT $action INTO @SummaryOfChanges;\n\nSELECT ProductID, OrderQty, SUM(LineTotal) AS Total\nFROM Sales.SalesOrderDetail\nWHERE UnitPrice < $5.00\nGROUP BY ProductID, OrderQty\nORDER BY ProductID, OrderQty\nOPTION (HASH GROUP, FAST 10);\n"}}]);
//# sourceMappingURL=3391.js.map

1
3391.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3391.js","mappings":"8IAAA,86C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.sql.txt"],"sourcesContent":["export default \"CREATE TABLE dbo.EmployeePhoto\\n(\\n EmployeeId INT NOT NULL PRIMARY KEY,\\n Photo VARBINARY(MAX) FILESTREAM NULL,\\n MyRowGuidColumn UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL\\n UNIQUE DEFAULT NEWID()\\n);\\n\\nGO\\n\\n/*\\ntext_of_comment\\n/* nested comment */\\n*/\\n\\n-- line comment\\n\\nCREATE NONCLUSTERED INDEX IX_WorkOrder_ProductID\\n ON Production.WorkOrder(ProductID)\\n WITH (FILLFACTOR = 80,\\n PAD_INDEX = ON,\\n DROP_EXISTING = ON);\\nGO\\n\\nWHILE (SELECT AVG(ListPrice) FROM Production.Product) < $300\\nBEGIN\\n UPDATE Production.Product\\n SET ListPrice = ListPrice * 2\\n SELECT MAX(ListPrice) FROM Production.Product\\n IF (SELECT MAX(ListPrice) FROM Production.Product) > $500\\n BREAK\\n ELSE\\n CONTINUE\\nEND\\nPRINT 'Too much for the market to bear';\\n\\nMERGE INTO Sales.SalesReason AS [Target]\\nUSING (VALUES ('Recommendation','Other'), ('Review', 'Marketing'), ('Internet', 'Promotion'))\\n AS [Source] ([NewName], NewReasonType)\\nON [Target].[Name] = [Source].[NewName]\\nWHEN MATCHED\\nTHEN UPDATE SET ReasonType = [Source].NewReasonType\\nWHEN NOT MATCHED BY TARGET\\nTHEN INSERT ([Name], ReasonType) VALUES ([NewName], NewReasonType)\\nOUTPUT $action INTO @SummaryOfChanges;\\n\\nSELECT ProductID, OrderQty, SUM(LineTotal) AS Total\\nFROM Sales.SalesOrderDetail\\nWHERE UnitPrice < $5.00\\nGROUP BY ProductID, OrderQty\\nORDER BY ProductID, OrderQty\\nOPTION (HASH GROUP, FAST 10);\\n\";"],"names":[],"sourceRoot":""}

2
3432.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3432],{3432:(a,t,n)=>{n.r(t),n.d(t,{default:()=>i});const i=".ob out1 out2 out3\n--1-- - wait 110000\n.ilb in1 in0 wait ack nack\n.symbolic state<3> state<2>;aaa bbb; # comment\n"}}]);
//# sourceMappingURL=3432.js.map

1
3432.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3432.js","mappings":"8IAAA,8I","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.pla.txt"],"sourcesContent":["export default \".ob out1 out2 out3\\n--1-- - wait 110000\\n.ilb in1 in0 wait ack nack\\n.symbolic state<3> state<2>;aaa bbb; # comment\\n\";"],"names":[],"sourceRoot":""}

2
3475.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3475],{3475:(n,e,t)=>{t.r(e),t.d(e,{default:()=>i});const i='fn main() {\n let greetings = ["Hello", "Hola", "Bonjour",\n "Ciao", "こんにちは", "안녕하세요",\n "Cześć", "Olá", "Здравствуйте",\n "Chào bạn", "您好", "Hallo",\n "Hej", "Ahoj", "سلام"];\n\n for (num, greeting) in greetings.iter().enumerate() {\n print!("{} : ", greeting);\n match num {\n 0 => println!("This code is editable and runnable!"),\n 1 => println!("¡Este código es editable y ejecutable!"),\n 2 => println!("Ce code est modifiable et exécutable !"),\n 3 => println!("Questo codice è modificabile ed eseguibile!"),\n 4 => println!("このコードは編集して実行出来ます!"),\n 5 => println!("여기에서 코드를 수정하고 실행할 수 있습니다!"),\n 6 => println!("Ten kod można edytować oraz uruchomić!"),\n 7 => println!("Este código é editável e executável!"),\n 8 => println!("Этот код можно отредактировать и запустить!"),\n 9 => println!("Bạn có thể edit và run code trực tiếp!"),\n 10 => println!("这段代码是可以编辑并且能够运行的!"),\n 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"),\n 12 => println!("Den här koden kan redigeras och köras!"),\n 13 => println!("Tento kód můžete upravit a spustit"),\n 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"),\n _ => {},\n }\n }\n}\n'}}]);
//# sourceMappingURL=3475.js.map

1
3475.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3475.js","mappings":"8IAAA,06C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.rust.txt"],"sourcesContent":["export default \"fn main() {\\n let greetings = [\\\"Hello\\\", \\\"Hola\\\", \\\"Bonjour\\\",\\n \\\"Ciao\\\", \\\"こんにちは\\\", \\\"안녕하세요\\\",\\n \\\"Cześć\\\", \\\"Olá\\\", \\\"Здравствуйте\\\",\\n \\\"Chào bạn\\\", \\\"您好\\\", \\\"Hallo\\\",\\n \\\"Hej\\\", \\\"Ahoj\\\", \\\"سلام\\\"];\\n\\n for (num, greeting) in greetings.iter().enumerate() {\\n print!(\\\"{} : \\\", greeting);\\n match num {\\n 0 => println!(\\\"This code is editable and runnable!\\\"),\\n 1 => println!(\\\"¡Este código es editable y ejecutable!\\\"),\\n 2 => println!(\\\"Ce code est modifiable et exécutable !\\\"),\\n 3 => println!(\\\"Questo codice è modificabile ed eseguibile!\\\"),\\n 4 => println!(\\\"このコードは編集して実行出来ます!\\\"),\\n 5 => println!(\\\"여기에서 코드를 수정하고 실행할 수 있습니다!\\\"),\\n 6 => println!(\\\"Ten kod można edytować oraz uruchomić!\\\"),\\n 7 => println!(\\\"Este código é editável e executável!\\\"),\\n 8 => println!(\\\"Этот код можно отредактировать и запустить!\\\"),\\n 9 => println!(\\\"Bạn có thể edit và run code trực tiếp!\\\"),\\n 10 => println!(\\\"这段代码是可以编辑并且能够运行的!\\\"),\\n 11 => println!(\\\"Dieser Code kann bearbeitet und ausgeführt werden!\\\"),\\n 12 => println!(\\\"Den här koden kan redigeras och köras!\\\"),\\n 13 => println!(\\\"Tento kód můžete upravit a spustit\\\"),\\n 14 => println!(\\\"این کد قابلیت ویرایش و اجرا دارد!\\\"),\\n _ => {},\\n }\\n }\\n}\\n\";"],"names":[],"sourceRoot":""}

2
3637.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3637],{3637:(e,a,i)=>{i.r(a),i.d(a,{default:()=>n});const n="MATCH (nicole:Actor {name: 'Nicole Kidman'})-[:ACTED_IN]->(movie:Movie)\nWHERE movie.year < $yearParameter\nRETURN movie\n"}}]);
//# sourceMappingURL=3637.js.map

1
3637.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3637.js","mappings":"8IAAA,oI","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.cypher.txt"],"sourcesContent":["export default \"MATCH (nicole:Actor {name: 'Nicole Kidman'})-[:ACTED_IN]->(movie:Movie)\\nWHERE movie.year < $yearParameter\\nRETURN movie\\n\";"],"names":[],"sourceRoot":""}

2
3648.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3648],{3648:(n,e,t)=>{t.r(e),t.d(e,{default:()=>i});const i="import 'dart:math' show Random;\n\nvoid main() async {\n print('Compute π using the Monte Carlo method.');\n await for (final estimate in computePi().take(100)) {\n print('π ≅ $estimate');\n }\n}\n\n/// Generates a stream of increasingly accurate estimates of π.\nStream<double> computePi({int batch = 100000}) async* {\n var total = 0; // Inferred to be of type int\n var count = 0;\n while (true) {\n final points = generateRandom().take(batch);\n final inside = points.where((p) => p.isInsideUnitCircle);\n\n total += batch;\n count += inside.length;\n final ratio = count / total;\n\n // Area of a circle is A = π⋅r², therefore π = A/r².\n // So, when given random points with x ∈ <0,1>,\n // y ∈ <0,1>, the ratio of those inside a unit circle\n // should approach π / 4. Therefore, the value of π\n // should be:\n yield ratio * 4;\n }\n}\n\nIterable<Point> generateRandom([int? seed]) sync* {\n final random = Random(seed);\n while (true) {\n yield Point(random.nextDouble(), random.nextDouble());\n }\n}\n\nclass Point {\n final double x;\n final double y;\n\n const Point(this.x, this.y);\n\n bool get isInsideUnitCircle => x * x + y * y <= 1;\n}\n"}}]);
//# sourceMappingURL=3648.js.map

1
3648.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3648.js","mappings":"8IAAA,msC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.dart.txt"],"sourcesContent":["export default \"import 'dart:math' show Random;\\n\\nvoid main() async {\\n print('Compute π using the Monte Carlo method.');\\n await for (final estimate in computePi().take(100)) {\\n print('π ≅ $estimate');\\n }\\n}\\n\\n/// Generates a stream of increasingly accurate estimates of π.\\nStream<double> computePi({int batch = 100000}) async* {\\n var total = 0; // Inferred to be of type int\\n var count = 0;\\n while (true) {\\n final points = generateRandom().take(batch);\\n final inside = points.where((p) => p.isInsideUnitCircle);\\n\\n total += batch;\\n count += inside.length;\\n final ratio = count / total;\\n\\n // Area of a circle is A = π⋅r², therefore π = A/r².\\n // So, when given random points with x ∈ <0,1>,\\n // y ∈ <0,1>, the ratio of those inside a unit circle\\n // should approach π / 4. Therefore, the value of π\\n // should be:\\n yield ratio * 4;\\n }\\n}\\n\\nIterable<Point> generateRandom([int? seed]) sync* {\\n final random = Random(seed);\\n while (true) {\\n yield Point(random.nextDouble(), random.nextDouble());\\n }\\n}\\n\\nclass Point {\\n final double x;\\n final double y;\\n\\n const Point(this.x, this.y);\\n\\n bool get isInsideUnitCircle => x * x + y * y <= 1;\\n}\\n\";"],"names":[],"sourceRoot":""}

2
3663.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3663],{3663:(n,e,a)=>{a.r(e),a.d(e,{default:()=>t});const t=' -- defines a factorial function\n function fact (n)\n if n == 0 then\n return 1\n else\n return n * fact(n-1)\n end\n end\n \n print("enter a number:")\n a = io.read("*number") -- read a number\n print(fact(a))'}}]);
//# sourceMappingURL=3663.js.map

1
3663.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3663.js","mappings":"8IAAA,sR","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.lua.txt"],"sourcesContent":["export default \" -- defines a factorial function\\n function fact (n)\\n if n == 0 then\\n return 1\\n else\\n return n * fact(n-1)\\n end\\n end\\n \\n print(\\\"enter a number:\\\")\\n a = io.read(\\\"*number\\\") -- read a number\\n print(fact(a))\";"],"names":[],"sourceRoot":""}

2
3823.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3823],{3823:(t,n,e)=>{e.r(n),e.d(n,{default:()=>s});const s="type storage is int\ntype parameter is\n Increment of int\n| Decrement of int\n| Reset\ntype return is list (operation) * storage\n// Two entrypoints\nfunction add (const store : storage; const delta : int) : storage is\n store + delta\nfunction sub (const store : storage; const delta : int) : storage is\n store - delta\n(* Main access point that dispatches to the entrypoints according to\n the smart contract parameter. *)\nfunction main (const action : parameter; const store : storage) : return is\n ((nil : list (operation)), // No operations\n case action of\n Increment (n) -> add (store, n)\n | Decrement (n) -> sub (store, n)\n | Reset -> 0\n end)\n"}}]);
//# sourceMappingURL=3823.js.map

1
3823.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3823.js","mappings":"8IAAA,qrB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.pascaligo.txt"],"sourcesContent":["export default \"type storage is int\\ntype parameter is\\n Increment of int\\n| Decrement of int\\n| Reset\\ntype return is list (operation) * storage\\n// Two entrypoints\\nfunction add (const store : storage; const delta : int) : storage is\\n store + delta\\nfunction sub (const store : storage; const delta : int) : storage is\\n store - delta\\n(* Main access point that dispatches to the entrypoints according to\\n the smart contract parameter. *)\\nfunction main (const action : parameter; const store : storage) : return is\\n ((nil : list (operation)), // No operations\\n case action of\\n Increment (n) -> add (store, n)\\n | Decrement (n) -> sub (store, n)\\n | Reset -> 0\\n end)\\n\";"],"names":[],"sourceRoot":""}

2
383.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[383],{383:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});const t='[#ftl stripText=false]\n\n[#-- Free marker demo --]\n\n[#comment]\nThis demonstrates the FreeMarker language. The default theme is not very\ncolorful and displays many different token types in the same color, but keep in\nmind that you can define your own theme (or extend an existing one).\n\nNote that free marker actually defines 6 similar but different syntax modes:\n\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\n\nIn auto mode, the first tag determines the tag syntax. You can use the language\nIDs "freemarker.tag-bracket.interpolation-dollar" etc. to force a specific mode.\n\nThe default FreeMarker mode is Angle/Dollar.\n[/#comment]\n\n[#macro greet name]\n <font size="+2">Hello [=name]!</font>\n[/#macro[\n\n[#macro border]\n <table border=4 cellspacing=0 cellpadding=4><tr><td>\n [#nested]\n </tr></td></table>\n[/#macro]\n\n[#function avg x y]\n [#return (x + y) / 2]\n[/#function]\n\n[#assign user = "Juila Smith"]\n[#assign animals = [{"name": "Tanuki", "price": 200}, {"name": "Phoenix", "price": 1111}]]\n\n<html>\n<head>\n <title>Welcome!</title>\n</head>\n<body>\n [#-- Greet the user with his/her name --]\n <h1>\n \t<@greet user />\n </h1>\n\n <p>We have these animals:\n\n <ul>\n [#list animals as animal]\n <li>[=animal.name] for [=animal.price] Euros\n [/#list][\n </ul>\n\n <@border>The bordered text</@border>\n\n The average of 35 and 49 is [=avg(35, 49]}.\n\n</body>\n</html>\n'}}]);
//# sourceMappingURL=383.js.map

1
383.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"383.js","mappings":"4IAAA,k/C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.freemarker2.tag-bracket.interpolation-bracket.txt"],"sourcesContent":["export default \"[#ftl stripText=false]\\n\\n[#-- Free marker demo --]\\n\\n[#comment]\\nThis demonstrates the FreeMarker language. The default theme is not very\\ncolorful and displays many different token types in the same color, but keep in\\nmind that you can define your own theme (or extend an existing one).\\n\\nNote that free marker actually defines 6 similar but different syntax modes:\\n\\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\\n\\nIn auto mode, the first tag determines the tag syntax. You can use the language\\nIDs \\\"freemarker.tag-bracket.interpolation-dollar\\\" etc. to force a specific mode.\\n\\nThe default FreeMarker mode is Angle/Dollar.\\n[/#comment]\\n\\n[#macro greet name]\\n <font size=\\\"+2\\\">Hello [=name]!</font>\\n[/#macro[\\n\\n[#macro border]\\n <table border=4 cellspacing=0 cellpadding=4><tr><td>\\n [#nested]\\n </tr></td></table>\\n[/#macro]\\n\\n[#function avg x y]\\n [#return (x + y) / 2]\\n[/#function]\\n\\n[#assign user = \\\"Juila Smith\\\"]\\n[#assign animals = [{\\\"name\\\": \\\"Tanuki\\\", \\\"price\\\": 200}, {\\\"name\\\": \\\"Phoenix\\\", \\\"price\\\": 1111}]]\\n\\n<html>\\n<head>\\n <title>Welcome!</title>\\n</head>\\n<body>\\n [#-- Greet the user with his/her name --]\\n <h1>\\n \\t<@greet user />\\n </h1>\\n\\n <p>We have these animals:\\n\\n <ul>\\n [#list animals as animal]\\n <li>[=animal.name] for [=animal.price] Euros\\n [/#list][\\n </ul>\\n\\n <@border>The bordered text</@border>\\n\\n The average of 35 and 49 is [=avg(35, 49]}.\\n\\n</body>\\n</html>\\n\";"],"names":[],"sourceRoot":""}

2
3863.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3863],{3863:(n,e,t)=>{t.r(e),t.d(e,{default:()=>i});const i='"""\nA CoffeeScript sample.\n"""\n\nclass Vehicle\n constructor: (@name) =>\n \n drive: () =>\n alert "Conducting #{@name}"\n\nclass Car extends Vehicle\n drive: () =>\n alert "Driving #{@name}"\n\nc = new Car "Brandie"\n\nwhile notAtDestination()\n c.drive()\n\nraceVehicles = (new Car for i in [1..100])\n\nstartRace = (vehicles) -> [vehicle.drive() for vehicle in vehicles]\n\nfancyRegExp = ///\n\t(\\d+)\t# numbers\n\t(\\w*)\t# letters\n\t$\t\t# the end\n///\n'}}]);
//# sourceMappingURL=3863.js.map

1
3863.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"3863.js","mappings":"8IAAA,qe","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.coffeescript.txt"],"sourcesContent":["export default \"\\\"\\\"\\\"\\nA CoffeeScript sample.\\n\\\"\\\"\\\"\\n\\nclass Vehicle\\n constructor: (@name) =>\\n \\n drive: () =>\\n alert \\\"Conducting #{@name}\\\"\\n\\nclass Car extends Vehicle\\n drive: () =>\\n alert \\\"Driving #{@name}\\\"\\n\\nc = new Car \\\"Brandie\\\"\\n\\nwhile notAtDestination()\\n c.drive()\\n\\nraceVehicles = (new Car for i in [1..100])\\n\\nstartRace = (vehicles) -> [vehicle.drive() for vehicle in vehicles]\\n\\nfancyRegExp = ///\\n\\t(\\\\d+)\\t# numbers\\n\\t(\\\\w*)\\t# letters\\n\\t$\\t\\t# the end\\n///\\n\";"],"names":[],"sourceRoot":""}

2
3926.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3926],{9867:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='# GraphQL Schema Definition Language\n\n"""\nColor value\n"""\nscalar Color\n\n"""\nNode interface\n\n- allows (re)fetch arbitrary entity only by ID\n- allows client side cache normalization\n\nSee [Relay Global Object Identification Specification](https://facebook.github.io/relay/graphql/objectidentification.htm)\n"""\ninterface Node {\n """\n Globally unique identifier,\n typically `${__typename}:${dbId}`\n may be encoded in *base64*\n """\n id: ID!\n}\n\n"""\nA character in the Star Wars Trilogy\n"""\ninterface Character {\n """\n The id of the character.\n """\n id: ID!\n\n """\n The name of the character.\n """\n name: String\n\n """\n The friends of the character, or an empty list if they have none.\n """\n friends: [Character]\n\n """\n Which movies they appear in\n """\n appearsIn: [Episode]\n\n """\n All secrets about their past\n """\n secretBackstory: String\n}\n\n"""\nA mechanical creature in the Star Wars universe.\n"""\ntype Droid implements Character {\n """\n The id of the droid.\n """\n id: ID!\n\n """\n The name of the droid.\n """\n name: String\n\n """\n The friends of the droid, or an empty list if they have none.\n """\n friends: [Character]\n\n """\n Which movies they appear in.\n """\n appearsIn: [Episode]\n\n """\n Construction date and the name of the designer.\n """\n secretBackstory: String\n\n """\n The primary function of the droid.\n """\n primaryFunction: String\n\n """\n Chase color of the droid.\n """\n color: Color\n}\n\n# One of the films in the Star Wars Trilogy\nenum Episode {\n """\n Released in 1977.\n """\n NEWHOPE\n\n """\n Released in 1980.\n """\n EMPIRE\n\n """\n Released in 1983.\n """\n JEDI\n}\n\n"""\nA humanoid creature in the Star Wars universe.\n"""\ntype Human implements Character {\n """\n The id of the human.\n """\n id: ID!\n\n """\n The name of the human.\n """\n name: String\n\n """\n The friends of the human, or an empty list if they have none.\n """\n friends: [Character]\n\n """\n Which movies they appear in.\n """\n appearsIn: [Episode]\n\n """\n The home planet of the human, or null if unknown.\n """\n homePlanet: String\n\n """\n Where are they from and how they came to be who they are.\n """\n secretBackstory: String\n}\n\nenum LengthUnit {\n METER\n FEET\n}\n\ntype Starship {\n id: ID!\n name: String!\n length(unit: LengthUnit = METER): Float\n}\n\nunion SearchResult = Human | Droid | Starship\n\ninput SearchInput {\n name: String\n episode: Episode\n}\n\n"""\nRoot Query\n"""\ntype Query {\n """\n Return the hero by episode.\n """\n hero(\n """\n If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.\n """\n episode: Episode\n ): Character\n\n """\n Return the Human by ID.\n """\n human(\n """\n id of the human\n """\n id: ID!\n ): Human\n\n """\n Return the Droid by ID.\n """\n droid(\n """\n id of the droid\n """\n id: ID!\n ): Droid\n\n """\n Search everything by name\n\n __NOTE__: You should use Relay pagination\n """\n search(search: SearchInput!): [SearchResult]\n @deprecated(reason: "`search` will be replaced.")\n}\n\n"""\nRoot Mutation\n"""\ntype Mutation {\n """\n Save the favorite episode.\n """\n favorite(\n """\n Favorite episode.\n """\n episode: Episode!\n ): Episode\n}\n\n"""\nSubscriptions — live events\n"""\ntype Subscription {\n """\n Message\n """\n message: String\n}\n\nextend type Query {\n """\n Dummy query for highlighting test\n """\n dummy(\n int: Int = 123\n float: Float = 123.456\n str: String = "Hello World!"\n boolDefaultTrue: Boolean = true\n boolDefaultFalse: Boolean = false\n id: ID\n search: SearchInput = null\n ): Boolean\n}\n\nschema {\n query: Query\n mutation: Mutation\n subscription: Subscription\n}\n\n# GraphQL Query Language\n\nquery dummyQuery($int: Int) {\n dummy(int: $int)\n}\n\nmutation favoriteEpisode($episode: Episode) {\n favorite(episode: $episode)\n}\n'}}]);
//# sourceMappingURL=3926.js.map

1
3926.js.map Normal file

File diff suppressed because one or more lines are too long

2
4090.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4090],{4090:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r='syntax = "proto3";\nimport public "other.proto";\n\n/* SearchRequest represents a search query, with pagination options to\n * indicate which results to include in the response. */\n\nmessage SearchRequest {\n required string query = 1;\n optional int32 page_number = 2; // Which page number do we want?\n optional int32 result_per_page = 3; // Number of results to return per page.\n}\n'}}]);
//# sourceMappingURL=4090.js.map

1
4090.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4090.js","mappings":"8IAAA,kZ","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.proto.txt"],"sourcesContent":["export default \"syntax = \\\"proto3\\\";\\nimport public \\\"other.proto\\\";\\n\\n/* SearchRequest represents a search query, with pagination options to\\n * indicate which results to include in the response. */\\n\\nmessage SearchRequest {\\n required string query = 1;\\n optional int32 page_number = 2; // Which page number do we want?\\n optional int32 result_per_page = 3; // Number of results to return per page.\\n}\\n\";"],"names":[],"sourceRoot":""}

2
4337.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4337],{4337:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});const a="=================\nMy Project Readme\n=================\n-------------------------\nClever subtitle goes here\n-------------------------\n\nIntroduction\n============\n\nThis is an example reStructuredText document that starts at the very top\nwith a title and a sub-title. There is one primary header, Introduction.\nThere is one example subheading below.\nThe document is just plain text so it is easily readable even before\nbeing converted to HTML, man page, PDF or other formats.\n\nSubheading\n----------\n\nThe basic syntax is not that different from Markdown, but it also\nhas many more powerful features that Markdown doesn't have. We aren't\ntaking advantage of those yet though.\n\n- Bullet points\n- Are intuitive\n- And simple too\n"}}]);
//# sourceMappingURL=4337.js.map

1
4337.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4337.js","mappings":"8IAAA,mvB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.restructuredtext.txt"],"sourcesContent":["export default \"=================\\nMy Project Readme\\n=================\\n-------------------------\\nClever subtitle goes here\\n-------------------------\\n\\nIntroduction\\n============\\n\\nThis is an example reStructuredText document that starts at the very top\\nwith a title and a sub-title. There is one primary header, Introduction.\\nThere is one example subheading below.\\nThe document is just plain text so it is easily readable even before\\nbeing converted to HTML, man page, PDF or other formats.\\n\\nSubheading\\n----------\\n\\nThe basic syntax is not that different from Markdown, but it also\\nhas many more powerful features that Markdown doesn't have. We aren't\\ntaking advantage of those yet though.\\n\\n- Bullet points\\n- Are intuitive\\n- And simple too\\n\";"],"names":[],"sourceRoot":""}

2
4353.js Normal file

File diff suppressed because one or more lines are too long

1
4353.js.map Normal file

File diff suppressed because one or more lines are too long

2
4568.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4568],{4568:(n,e,t)=>{t.r(e),t.d(e,{default:()=>l});const l="REPORT zrosetta_base64_encode_data.\n\nDATA: li_client TYPE REF TO if_http_client,\n lv_encoded TYPE string,\n lv_data TYPE xstring.\n\n\ncl_http_client=>create_by_url(\n EXPORTING\n url = 'http://rosettacode.org/favicon.ico'\n IMPORTING\n client = li_client ).\n\nli_client->send( ).\nli_client->receive( ).\n\nlv_data = li_client->response->get_data( ).\n\nCALL FUNCTION 'SSFC_BASE64_ENCODE'\n EXPORTING\n bindata = lv_data\n IMPORTING\n b64data = lv_encoded.\n\nWHILE strlen( lv_encoded ) > 100.\n WRITE: / lv_encoded(100).\n lv_encoded = lv_encoded+100.\nENDWHILE.\nWRITE: / lv_encoded.\n"}}]);
//# sourceMappingURL=4568.js.map

1
4568.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4568.js","mappings":"8IAAA,6nB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.abap.txt"],"sourcesContent":["export default \"REPORT zrosetta_base64_encode_data.\\n\\nDATA: li_client TYPE REF TO if_http_client,\\n lv_encoded TYPE string,\\n lv_data TYPE xstring.\\n\\n\\ncl_http_client=>create_by_url(\\n EXPORTING\\n url = 'http://rosettacode.org/favicon.ico'\\n IMPORTING\\n client = li_client ).\\n\\nli_client->send( ).\\nli_client->receive( ).\\n\\nlv_data = li_client->response->get_data( ).\\n\\nCALL FUNCTION 'SSFC_BASE64_ENCODE'\\n EXPORTING\\n bindata = lv_data\\n IMPORTING\\n b64data = lv_encoded.\\n\\nWHILE strlen( lv_encoded ) > 100.\\n WRITE: / lv_encoded(100).\\n lv_encoded = lv_encoded+100.\\nENDWHILE.\\nWRITE: / lv_encoded.\\n\";"],"names":[],"sourceRoot":""}

2
4720.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4720],{4720:(e,i,t)=>{t.r(i),t.d(i,{default:()=>a});const a="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus aliquet sapien, sed rhoncus leo ullamcorper ornare. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus feugiat eleifend nisl, aliquet rhoncus quam scelerisque vel. Morbi eu pellentesque ex. Nam suscipit maximus leo blandit cursus. Aenean sollicitudin nisi luctus, ornare nibh viverra, laoreet ex. Donec eget nibh sit amet dolor ornare elementum. Morbi sollicitudin enim vitae risus pretium vestibulum. Ut pretium hendrerit libero, non vulputate ante volutpat et. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam malesuada turpis vitae est porttitor, id tincidunt neque dignissim. Integer rhoncus vestibulum justo in iaculis. Praesent nec augue ut dui scelerisque gravida vel id velit. Donec vehicula feugiat mollis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\n\nPraesent diam lorem, luctus quis ullamcorper non, consequat quis orci. Ut vel massa vel nunc sagittis porttitor a vitae ante. Quisque euismod lobortis imperdiet. Vestibulum tincidunt vehicula posuere. Nulla facilisi. Donec sodales imperdiet risus id ullamcorper. Nulla luctus orci tortor, vitae tincidunt urna aliquet nec. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam consequat dapibus massa. Sed ac pharetra magna, in imperdiet neque. Nullam nunc nisi, consequat vel nunc et, sagittis aliquam arcu. Aliquam non orci magna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed id sem ut sem pulvinar rhoncus. Aenean venenatis nunc eget mi ornare, vitae maximus lacus varius. Quisque quis vestibulum justo.\n\nDonec euismod luctus volutpat. Donec sed lacinia enim. Vivamus aliquam elit cursus, convallis diam at, volutpat turpis. Sed lacinia nisl in auctor dapibus. Nunc turpis mi, mattis ut rhoncus id, lacinia sed lectus. Donec sodales tellus quis libero gravida pretium et quis magna. Etiam ultricies mollis purus, eget consequat velit. Duis vitae nibh vitae arcu tincidunt congue. Maecenas ut velit in ipsum condimentum dictum quis eget urna. Sed mattis nulla arcu, vitae mattis ligula dictum at.\n\nPraesent at dignissim dolor. Donec quis placerat sem. Cras vitae placerat sapien, eu sagittis ex. Mauris nec luctus risus. Cras imperdiet semper neque suscipit auctor. Mauris nisl massa, commodo sit amet dignissim id, malesuada sed ante. Praesent varius sapien eget eros vehicula porttitor.\n\nMauris auctor nunc in quam tempor, eget consectetur nisi rhoncus. Donec et nulla imperdiet, gravida dui at, accumsan velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin sollicitudin condimentum auctor. Sed lacinia eleifend nisi, id scelerisque leo laoreet sit amet. Morbi congue augue a malesuada pulvinar. Curabitur nec ante finibus, commodo orci vel, aliquam libero. Morbi molestie purus non nunc placerat fermentum. Pellentesque commodo ligula sed pretium aliquam. Praesent ut nibh ex. Vivamus vestibulum velit in leo suscipit, vitae pellentesque urna vulputate. Suspendisse pretium placerat ligula eu ullamcorper. Nam eleifend mi tellus, ut tristique ante ultricies vitae. Quisque venenatis dapibus tellus sit amet mattis. Donec erat arcu, elementum vel nisl at, sagittis vulputate nisi."}}]);
//# sourceMappingURL=4720.js.map

1
4720.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4720.js","mappings":"8IAAA,u0G","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.plaintext.txt"],"sourcesContent":["export default \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus aliquet sapien, sed rhoncus leo ullamcorper ornare. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus feugiat eleifend nisl, aliquet rhoncus quam scelerisque vel. Morbi eu pellentesque ex. Nam suscipit maximus leo blandit cursus. Aenean sollicitudin nisi luctus, ornare nibh viverra, laoreet ex. Donec eget nibh sit amet dolor ornare elementum. Morbi sollicitudin enim vitae risus pretium vestibulum. Ut pretium hendrerit libero, non vulputate ante volutpat et. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam malesuada turpis vitae est porttitor, id tincidunt neque dignissim. Integer rhoncus vestibulum justo in iaculis. Praesent nec augue ut dui scelerisque gravida vel id velit. Donec vehicula feugiat mollis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\\n\\nPraesent diam lorem, luctus quis ullamcorper non, consequat quis orci. Ut vel massa vel nunc sagittis porttitor a vitae ante. Quisque euismod lobortis imperdiet. Vestibulum tincidunt vehicula posuere. Nulla facilisi. Donec sodales imperdiet risus id ullamcorper. Nulla luctus orci tortor, vitae tincidunt urna aliquet nec. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam consequat dapibus massa. Sed ac pharetra magna, in imperdiet neque. Nullam nunc nisi, consequat vel nunc et, sagittis aliquam arcu. Aliquam non orci magna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed id sem ut sem pulvinar rhoncus. Aenean venenatis nunc eget mi ornare, vitae maximus lacus varius. Quisque quis vestibulum justo.\\n\\nDonec euismod luctus volutpat. Donec sed lacinia enim. Vivamus aliquam elit cursus, convallis diam at, volutpat turpis. Sed lacinia nisl in auctor dapibus. Nunc turpis mi, mattis ut rhoncus id, lacinia sed lectus. Donec sodales tellus quis libero gravida pretium et quis magna. Etiam ultricies mollis purus, eget consequat velit. Duis vitae nibh vitae arcu tincidunt congue. Maecenas ut velit in ipsum condimentum dictum quis eget urna. Sed mattis nulla arcu, vitae mattis ligula dictum at.\\n\\nPraesent at dignissim dolor. Donec quis placerat sem. Cras vitae placerat sapien, eu sagittis ex. Mauris nec luctus risus. Cras imperdiet semper neque suscipit auctor. Mauris nisl massa, commodo sit amet dignissim id, malesuada sed ante. Praesent varius sapien eget eros vehicula porttitor.\\n\\nMauris auctor nunc in quam tempor, eget consectetur nisi rhoncus. Donec et nulla imperdiet, gravida dui at, accumsan velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin sollicitudin condimentum auctor. Sed lacinia eleifend nisi, id scelerisque leo laoreet sit amet. Morbi congue augue a malesuada pulvinar. Curabitur nec ante finibus, commodo orci vel, aliquam libero. Morbi molestie purus non nunc placerat fermentum. Pellentesque commodo ligula sed pretium aliquam. Praesent ut nibh ex. Vivamus vestibulum velit in leo suscipit, vitae pellentesque urna vulputate. Suspendisse pretium placerat ligula eu ullamcorper. Nam eleifend mi tellus, ut tristique ante ultricies vitae. Quisque venenatis dapibus tellus sit amet mattis. Donec erat arcu, elementum vel nisl at, sagittis vulputate nisi.\";"],"names":[],"sourceRoot":""}

2
4729.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4729],{4729:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});const l="/* Game of Life\n * Implemented in TypeScript\n * To learn more about TypeScript, please visit http://www.typescriptlang.org/\n */\n\nnamespace Conway {\n\n\texport class Cell {\n\t\tpublic row: number;\n\t\tpublic col: number;\n\t\tpublic live: boolean;\n\n\t\tconstructor(row: number, col: number, live: boolean) {\n\t\t\tthis.row = row;\n\t\t\tthis.col = col;\n\t\t\tthis.live = live;\n\t\t}\n\t}\n\n\texport class GameOfLife {\n\t\tprivate gridSize: number;\n\t\tprivate canvasSize: number;\n\t\tprivate lineColor: string;\n\t\tprivate liveColor: string;\n\t\tprivate deadColor: string;\n\t\tprivate initialLifeProbability: number;\n\t\tprivate animationRate: number;\n\t\tprivate cellSize: number;\n\t\tprivate context: CanvasRenderingContext2D;\n\t\tprivate world;\n\n\n\t\tconstructor() {\n\t\t\tthis.gridSize = 50;\n\t\t\tthis.canvasSize = 600;\n\t\t\tthis.lineColor = '#cdcdcd';\n\t\t\tthis.liveColor = '#666';\n\t\t\tthis.deadColor = '#eee';\n\t\t\tthis.initialLifeProbability = 0.5;\n\t\t\tthis.animationRate = 60;\n\t\t\tthis.cellSize = 0;\n\t\t\tthis.world = this.createWorld();\n\t\t\tthis.circleOfLife();\n\t\t}\n\n\t\tpublic createWorld() {\n\t\t\treturn this.travelWorld( (cell : Cell) => {\n\t\t\t\tcell.live = Math.random() < this.initialLifeProbability;\n\t\t\t\treturn cell;\n\t\t\t});\n\t\t}\n\n\t\tpublic circleOfLife() : void {\n\t\t\tthis.world = this.travelWorld( (cell: Cell) => {\n\t\t\t\tcell = this.world[cell.row][cell.col];\n\t\t\t\tthis.draw(cell);\n\t\t\t\treturn this.resolveNextGeneration(cell);\n\t\t\t});\n\t\t\tsetTimeout( () => {this.circleOfLife()}, this.animationRate);\n\t\t}\n\n\t\tpublic resolveNextGeneration(cell : Cell) {\n\t\t\tvar count = this.countNeighbors(cell);\n\t\t\tvar newCell = new Cell(cell.row, cell.col, cell.live);\n\t\t\tif(count < 2 || count > 3) newCell.live = false;\n\t\t\telse if(count == 3) newCell.live = true;\n\t\t\treturn newCell;\n\t\t}\n\n\t\tpublic countNeighbors(cell : Cell) {\n\t\t\tvar neighbors = 0;\n\t\t\tfor(var row = -1; row <=1; row++) {\n\t\t\t\tfor(var col = -1; col <= 1; col++) {\n\t\t\t\t\tif(row == 0 && col == 0) continue;\n\t\t\t\t\tif(this.isAlive(cell.row + row, cell.col + col)) {\n\t\t\t\t\t\tneighbors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn neighbors;\n\t\t}\n\n\t\tpublic isAlive(row : number, col : number) {\n\t\t\tif(row < 0 || col < 0 || row >= this.gridSize || col >= this.gridSize) return false;\n\t\t\treturn this.world[row][col].live;\n\t\t}\n\n\t\tpublic travelWorld(callback) {\n\t\t\tvar result = [];\n\t\t\tfor(var row = 0; row < this.gridSize; row++) {\n\t\t\t\tvar rowData = [];\n\t\t\t\tfor(var col = 0; col < this.gridSize; col++) {\n\t\t\t\t\trowData.push(callback(new Cell(row, col, false)));\n\t\t\t\t}\n\t\t\t\tresult.push(rowData);\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\n\t\tpublic draw(cell : Cell) {\n\t\t\tif(this.context == null) this.context = this.createDrawingContext();\n\t\t\tif(this.cellSize == 0) this.cellSize = this.canvasSize/this.gridSize;\n\n\t\t\tthis.context.strokeStyle = this.lineColor;\n\t\t\tthis.context.strokeRect(cell.row * this.cellSize, cell.col*this.cellSize, this.cellSize, this.cellSize);\n\t\t\tthis.context.fillStyle = cell.live ? this.liveColor : this.deadColor;\n\t\t\tthis.context.fillRect(cell.row * this.cellSize, cell.col*this.cellSize, this.cellSize, this.cellSize);\n\t\t}\n\n\t\tpublic createDrawingContext() {\n\t\t\tvar canvas = <HTMLCanvasElement> document.getElementById('conway-canvas');\n\t\t\tif(canvas == null) {\n\t\t\t\t\tcanvas = document.createElement('canvas');\n\t\t\t\t\tcanvas.id = 'conway-canvas';\n\t\t\t\t\tcanvas.width = this.canvasSize;\n\t\t\t\t\tcanvas.height = this.canvasSize;\n\t\t\t\t\tdocument.body.appendChild(canvas);\n\t\t\t}\n\t\t\treturn canvas.getContext('2d');\n\t\t}\n\t}\n}\n\nvar game = new Conway.GameOfLife();\n"}}]);
//# sourceMappingURL=4729.js.map

1
4729.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4729.js","mappings":"8IAAA,8vH","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.typescript.txt"],"sourcesContent":["export default \"/* Game of Life\\n * Implemented in TypeScript\\n * To learn more about TypeScript, please visit http://www.typescriptlang.org/\\n */\\n\\nnamespace Conway {\\n\\n\\texport class Cell {\\n\\t\\tpublic row: number;\\n\\t\\tpublic col: number;\\n\\t\\tpublic live: boolean;\\n\\n\\t\\tconstructor(row: number, col: number, live: boolean) {\\n\\t\\t\\tthis.row = row;\\n\\t\\t\\tthis.col = col;\\n\\t\\t\\tthis.live = live;\\n\\t\\t}\\n\\t}\\n\\n\\texport class GameOfLife {\\n\\t\\tprivate gridSize: number;\\n\\t\\tprivate canvasSize: number;\\n\\t\\tprivate lineColor: string;\\n\\t\\tprivate liveColor: string;\\n\\t\\tprivate deadColor: string;\\n\\t\\tprivate initialLifeProbability: number;\\n\\t\\tprivate animationRate: number;\\n\\t\\tprivate cellSize: number;\\n\\t\\tprivate context: CanvasRenderingContext2D;\\n\\t\\tprivate world;\\n\\n\\n\\t\\tconstructor() {\\n\\t\\t\\tthis.gridSize = 50;\\n\\t\\t\\tthis.canvasSize = 600;\\n\\t\\t\\tthis.lineColor = '#cdcdcd';\\n\\t\\t\\tthis.liveColor = '#666';\\n\\t\\t\\tthis.deadColor = '#eee';\\n\\t\\t\\tthis.initialLifeProbability = 0.5;\\n\\t\\t\\tthis.animationRate = 60;\\n\\t\\t\\tthis.cellSize = 0;\\n\\t\\t\\tthis.world = this.createWorld();\\n\\t\\t\\tthis.circleOfLife();\\n\\t\\t}\\n\\n\\t\\tpublic createWorld() {\\n\\t\\t\\treturn this.travelWorld( (cell : Cell) => {\\n\\t\\t\\t\\tcell.live = Math.random() < this.initialLifeProbability;\\n\\t\\t\\t\\treturn cell;\\n\\t\\t\\t});\\n\\t\\t}\\n\\n\\t\\tpublic circleOfLife() : void {\\n\\t\\t\\tthis.world = this.travelWorld( (cell: Cell) => {\\n\\t\\t\\t\\tcell = this.world[cell.row][cell.col];\\n\\t\\t\\t\\tthis.draw(cell);\\n\\t\\t\\t\\treturn this.resolveNextGeneration(cell);\\n\\t\\t\\t});\\n\\t\\t\\tsetTimeout( () => {this.circleOfLife()}, this.animationRate);\\n\\t\\t}\\n\\n\\t\\tpublic resolveNextGeneration(cell : Cell) {\\n\\t\\t\\tvar count = this.countNeighbors(cell);\\n\\t\\t\\tvar newCell = new Cell(cell.row, cell.col, cell.live);\\n\\t\\t\\tif(count < 2 || count > 3) newCell.live = false;\\n\\t\\t\\telse if(count == 3) newCell.live = true;\\n\\t\\t\\treturn newCell;\\n\\t\\t}\\n\\n\\t\\tpublic countNeighbors(cell : Cell) {\\n\\t\\t\\tvar neighbors = 0;\\n\\t\\t\\tfor(var row = -1; row <=1; row++) {\\n\\t\\t\\t\\tfor(var col = -1; col <= 1; col++) {\\n\\t\\t\\t\\t\\tif(row == 0 && col == 0) continue;\\n\\t\\t\\t\\t\\tif(this.isAlive(cell.row + row, cell.col + col)) {\\n\\t\\t\\t\\t\\t\\tneighbors++;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn neighbors;\\n\\t\\t}\\n\\n\\t\\tpublic isAlive(row : number, col : number) {\\n\\t\\t\\tif(row < 0 || col < 0 || row >= this.gridSize || col >= this.gridSize) return false;\\n\\t\\t\\treturn this.world[row][col].live;\\n\\t\\t}\\n\\n\\t\\tpublic travelWorld(callback) {\\n\\t\\t\\tvar result = [];\\n\\t\\t\\tfor(var row = 0; row < this.gridSize; row++) {\\n\\t\\t\\t\\tvar rowData = [];\\n\\t\\t\\t\\tfor(var col = 0; col < this.gridSize; col++) {\\n\\t\\t\\t\\t\\trowData.push(callback(new Cell(row, col, false)));\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tresult.push(rowData);\\n\\t\\t\\t}\\n\\t\\t\\treturn result;\\n\\t\\t}\\n\\n\\t\\tpublic draw(cell : Cell) {\\n\\t\\t\\tif(this.context == null) this.context = this.createDrawingContext();\\n\\t\\t\\tif(this.cellSize == 0) this.cellSize = this.canvasSize/this.gridSize;\\n\\n\\t\\t\\tthis.context.strokeStyle = this.lineColor;\\n\\t\\t\\tthis.context.strokeRect(cell.row * this.cellSize, cell.col*this.cellSize, this.cellSize, this.cellSize);\\n\\t\\t\\tthis.context.fillStyle = cell.live ? this.liveColor : this.deadColor;\\n\\t\\t\\tthis.context.fillRect(cell.row * this.cellSize, cell.col*this.cellSize, this.cellSize, this.cellSize);\\n\\t\\t}\\n\\n\\t\\tpublic createDrawingContext() {\\n\\t\\t\\tvar canvas = <HTMLCanvasElement> document.getElementById('conway-canvas');\\n\\t\\t\\tif(canvas == null) {\\n\\t\\t\\t\\t\\tcanvas = document.createElement('canvas');\\n\\t\\t\\t\\t\\tcanvas.id = 'conway-canvas';\\n\\t\\t\\t\\t\\tcanvas.width = this.canvasSize;\\n\\t\\t\\t\\t\\tcanvas.height = this.canvasSize;\\n\\t\\t\\t\\t\\tdocument.body.appendChild(canvas);\\n\\t\\t\\t}\\n\\t\\t\\treturn canvas.getContext('2d');\\n\\t\\t}\\n\\t}\\n}\\n\\nvar game = new Conway.GameOfLife();\\n\";"],"names":[],"sourceRoot":""}

2
4773.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4773],{4773:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});const a='@{\n var total = 0;\n var totalMessage = "";\n @* a multiline\n razor comment embedded in csharp *@\n if (IsPost) {\n\n // Retrieve the numbers that the user entered.\n var num1 = Request["text1"];\n var num2 = Request["text2"];\n\n // Convert the entered strings into integers numbers and add.\n total = num1.AsInt() + num2.AsInt();\n\t\t<italic><bold>totalMessage = "Total = " + total;</bold></italic>\n }\n}\n\n<!DOCTYPE html>\n<html lang="en">\n <head>\n <title>Add Numbers</title>\n <meta charset="utf-8" />\n </head>\n<body>\n <p>Enter two whole numbers and then click <strong>Add</strong>.</p>\n <form action="" method="post">\n <p><label for="text1">First Number:</label>\n <input type="text" name="text1" />\n </p>\n <p><label for="text2">Second Number:</label>\n <input type="text" name="text2" />\n </p>\n <p><input type="submit" value="Add" /></p>\n </form>\n\n\t@* now we call the totalMessage method \n\t (a multi line razor comment outside code) *@\n\n <p>@totalMessage</p>\n \n <p>@(totalMessage+"!")</p>\n \n An email address (with escaped at character): name@@domain.com\n \n</body>\n</html>\n'}}]);
//# sourceMappingURL=4773.js.map

1
4773.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4773.js","mappings":"8IAAA,msC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.razor.txt"],"sourcesContent":["export default \"@{\\n var total = 0;\\n var totalMessage = \\\"\\\";\\n @* a multiline\\n razor comment embedded in csharp *@\\n if (IsPost) {\\n\\n // Retrieve the numbers that the user entered.\\n var num1 = Request[\\\"text1\\\"];\\n var num2 = Request[\\\"text2\\\"];\\n\\n // Convert the entered strings into integers numbers and add.\\n total = num1.AsInt() + num2.AsInt();\\n\\t\\t<italic><bold>totalMessage = \\\"Total = \\\" + total;</bold></italic>\\n }\\n}\\n\\n<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n <head>\\n <title>Add Numbers</title>\\n <meta charset=\\\"utf-8\\\" />\\n </head>\\n<body>\\n <p>Enter two whole numbers and then click <strong>Add</strong>.</p>\\n <form action=\\\"\\\" method=\\\"post\\\">\\n <p><label for=\\\"text1\\\">First Number:</label>\\n <input type=\\\"text\\\" name=\\\"text1\\\" />\\n </p>\\n <p><label for=\\\"text2\\\">Second Number:</label>\\n <input type=\\\"text\\\" name=\\\"text2\\\" />\\n </p>\\n <p><input type=\\\"submit\\\" value=\\\"Add\\\" /></p>\\n </form>\\n\\n\\t@* now we call the totalMessage method \\n\\t (a multi line razor comment outside code) *@\\n\\n <p>@totalMessage</p>\\n \\n <p>@(totalMessage+\\\"!\\\")</p>\\n \\n An email address (with escaped at character): name@@domain.com\\n \\n</body>\\n</html>\\n\";"],"names":[],"sourceRoot":""}

2
4942.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4942],{4942:(n,e,i)=>{i.r(e),i.d(e,{default:()=>s});const s='(ns game-of-life\n "Conway\'s Game of Life, based on the work of\n Christophe Grand (http://clj-me.cgrand.net/2011/08/19/conways-game-of-life)\n and Laurent Petit (https://gist.github.com/1200343).")\n\n;;; Core game of life\'s algorithm functions\n\n(defn neighbors\n "Given a cell\'s coordinates `[x y]`, returns the coordinates of its\n neighbors."\n [[x y]]\n (for [dx [-1 0 1]\n dy (if (zero? dx)\n [-1 1]\n [-1 0 1])]\n [(+ dx x) (+ dy y)]))\n\n(defn step\n "Given a set of living `cells`, computes the new set of living cells."\n [cells]\n (set (for [[cell n] (frequencies (mapcat neighbors cells))\n :when (or (= n 3)\n (and (= n 2)\n (cells cell)))]\n cell)))\n\n;;; Utility methods for displaying game on a text terminal\n\n(defn print-grid\n "Prints a `grid` of `w` columns and `h` rows, on *out*, representing a\n step in the game."\n [grid w h]\n (doseq [x (range (inc w))\n y (range (inc h))]\n (when (= y 0) (println))\n (print (if (grid [x y])\n "[X]"\n " . "))))\n\n(defn print-grids\n "Prints a sequence of `grids` of `w` columns and `h` rows on *out*,\n representing several steps."\n [grids w h]\n (doseq [grid grids]\n (print-grid grid w h)\n (println)))\n\n;;; Launches an example grid\n\n(def grid\n "`grid` represents the initial set of living cells"\n #{[2 1] [2 2] [2 3]})\n\n(print-grids (take 3 (iterate step grid)) 5 5)'}}]);
//# sourceMappingURL=4942.js.map

1
4942.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"4942.js","mappings":"8IAAA,s/C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.clojure.txt"],"sourcesContent":["export default \"(ns game-of-life\\n \\\"Conway's Game of Life, based on the work of\\n Christophe Grand (http://clj-me.cgrand.net/2011/08/19/conways-game-of-life)\\n and Laurent Petit (https://gist.github.com/1200343).\\\")\\n\\n;;; Core game of life's algorithm functions\\n\\n(defn neighbors\\n \\\"Given a cell's coordinates `[x y]`, returns the coordinates of its\\n neighbors.\\\"\\n [[x y]]\\n (for [dx [-1 0 1]\\n dy (if (zero? dx)\\n [-1 1]\\n [-1 0 1])]\\n [(+ dx x) (+ dy y)]))\\n\\n(defn step\\n \\\"Given a set of living `cells`, computes the new set of living cells.\\\"\\n [cells]\\n (set (for [[cell n] (frequencies (mapcat neighbors cells))\\n :when (or (= n 3)\\n (and (= n 2)\\n (cells cell)))]\\n cell)))\\n\\n;;; Utility methods for displaying game on a text terminal\\n\\n(defn print-grid\\n \\\"Prints a `grid` of `w` columns and `h` rows, on *out*, representing a\\n step in the game.\\\"\\n [grid w h]\\n (doseq [x (range (inc w))\\n y (range (inc h))]\\n (when (= y 0) (println))\\n (print (if (grid [x y])\\n \\\"[X]\\\"\\n \\\" . \\\"))))\\n\\n(defn print-grids\\n \\\"Prints a sequence of `grids` of `w` columns and `h` rows on *out*,\\n representing several steps.\\\"\\n [grids w h]\\n (doseq [grid grids]\\n (print-grid grid w h)\\n (println)))\\n\\n;;; Launches an example grid\\n\\n(def grid\\n \\\"`grid` represents the initial set of living cells\\\"\\n #{[2 1] [2 2] [2 3]})\\n\\n(print-grids (take 3 (iterate step grid)) 5 5)\";"],"names":[],"sourceRoot":""}

2
5087.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5087],{5087:(t,n,e)=>{e.r(n),e.d(n,{default:()=>i});const i='/*\n\tBasic Java example using FizzBuzz\n*/\n\nimport java.util.Random;\n\npublic class Example {\n\tpublic static void main (String[] args){\n\t\t// Generate a random number between 1-100. (See generateRandomNumber method.)\n\t\tint random = generateRandomNumber(100);\n\n\t\t// Output generated number.\n\t\tSystem.out.println("Generated number: " + random + "\\n");\n\n\t\t// Loop between 1 and the number we just generated.\n\t\tfor (int i=1; i<=random; i++){\n\t\t\t// If i is divisible by both 3 and 5, output "FizzBuzz".\n\t\t\tif (i % 3 == 0 && i % 5 == 0){\n\t\t\t\tSystem.out.println("FizzBuzz");\n\t\t\t}\n\t\t\t// If i is divisible by 3, output "Fizz"\n\t\t\telse if (i % 3 == 0){\n\t\t\t\tSystem.out.println("Fizz");\n\t\t\t}\n\t\t\t// If i is divisible by 5, output "Buzz".\n\t\t\telse if (i % 5 == 0){\n\t\t\t\tSystem.out.println("Buzz");\n\t\t\t}\n\t\t\t// If i is not divisible by either 3 or 5, output the number.\n\t\t\telse {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t\tGenerates a new random number between 0 and 100.\n\t\t@param bound The highest number that should be generated.\n\t\t@return An integer representing a randomly generated number between 0 and 100.\n\t*/\n\tprivate static int generateRandomNumber(int bound){\n\t\t// Create new Random generator object and generate the random number.\n\t\tRandom randGen = new Random();\n\t\tint randomNum = randGen.nextInt(bound);\n\n\t\t// If the random number generated is zero, use recursion to regenerate the number until it is not zero.\n\t\tif (randomNum < 1){\n\t\t\trandomNum = generateRandomNumber(bound);\n\t\t}\n\n\t\treturn randomNum;\n\t}\n}\n '}}]);
//# sourceMappingURL=5087.js.map

1
5087.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5087.js","mappings":"8IAAA,8nD","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.java.txt"],"sourcesContent":["export default \"/*\\n\\tBasic Java example using FizzBuzz\\n*/\\n\\nimport java.util.Random;\\n\\npublic class Example {\\n\\tpublic static void main (String[] args){\\n\\t\\t// Generate a random number between 1-100. (See generateRandomNumber method.)\\n\\t\\tint random = generateRandomNumber(100);\\n\\n\\t\\t// Output generated number.\\n\\t\\tSystem.out.println(\\\"Generated number: \\\" + random + \\\"\\\\n\\\");\\n\\n\\t\\t// Loop between 1 and the number we just generated.\\n\\t\\tfor (int i=1; i<=random; i++){\\n\\t\\t\\t// If i is divisible by both 3 and 5, output \\\"FizzBuzz\\\".\\n\\t\\t\\tif (i % 3 == 0 && i % 5 == 0){\\n\\t\\t\\t\\tSystem.out.println(\\\"FizzBuzz\\\");\\n\\t\\t\\t}\\n\\t\\t\\t// If i is divisible by 3, output \\\"Fizz\\\"\\n\\t\\t\\telse if (i % 3 == 0){\\n\\t\\t\\t\\tSystem.out.println(\\\"Fizz\\\");\\n\\t\\t\\t}\\n\\t\\t\\t// If i is divisible by 5, output \\\"Buzz\\\".\\n\\t\\t\\telse if (i % 5 == 0){\\n\\t\\t\\t\\tSystem.out.println(\\\"Buzz\\\");\\n\\t\\t\\t}\\n\\t\\t\\t// If i is not divisible by either 3 or 5, output the number.\\n\\t\\t\\telse {\\n\\t\\t\\t\\tSystem.out.println(i);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t/**\\n\\t\\tGenerates a new random number between 0 and 100.\\n\\t\\t@param bound The highest number that should be generated.\\n\\t\\t@return An integer representing a randomly generated number between 0 and 100.\\n\\t*/\\n\\tprivate static int generateRandomNumber(int bound){\\n\\t\\t// Create new Random generator object and generate the random number.\\n\\t\\tRandom randGen = new Random();\\n\\t\\tint randomNum = randGen.nextInt(bound);\\n\\n\\t\\t// If the random number generated is zero, use recursion to regenerate the number until it is not zero.\\n\\t\\tif (randomNum < 1){\\n\\t\\t\\trandomNum = generateRandomNumber(bound);\\n\\t\\t}\\n\\n\\t\\treturn randomNum;\\n\\t}\\n}\\n \";"],"names":[],"sourceRoot":""}

2
5115.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5115],{4323:(n,e,r)=>{r.r(e),r.d(e,{default:()=>o});const o="targetScope = 'subscription'\n\nparam deployStorage bool = true\n\n@description('The object ID of the principal that will get the role assignment')\nparam aadPrincipalId string\n\nmodule stg './storage.bicep' = if(deployStorage) {\n name: 'storageDeploy'\n scope: resourceGroup('another-rg') // this will target another resource group in the same subscription\n params: {\n storageAccountName: '<YOURUNIQUESTORAGENAME>'\n }\n}\n\nvar contributor = 'b24988ac-6180-42a0-ab88-20f7382dd24c'\nresource roleDef 'Microsoft.Authorization/roleDefinitions@2018-01-01-preview' existing = {\n name: contributor\n}\n\nresource rbac 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {\n name: guid(subscription().id, aadPrincipalId, contributor)\n properties: {\n roleDefinitionId: roleDef.id\n principalId: aadPrincipalId\n }\n}\n\noutput storageName array = stg.outputs.containerProps\n"}}]);
//# sourceMappingURL=5115.js.map

1
5115.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5115.js","mappings":"8IAAA,k5B","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.bicep.txt"],"sourcesContent":["export default \"targetScope = 'subscription'\\n\\nparam deployStorage bool = true\\n\\n@description('The object ID of the principal that will get the role assignment')\\nparam aadPrincipalId string\\n\\nmodule stg './storage.bicep' = if(deployStorage) {\\n name: 'storageDeploy'\\n scope: resourceGroup('another-rg') // this will target another resource group in the same subscription\\n params: {\\n storageAccountName: '<YOURUNIQUESTORAGENAME>'\\n }\\n}\\n\\nvar contributor = 'b24988ac-6180-42a0-ab88-20f7382dd24c'\\nresource roleDef 'Microsoft.Authorization/roleDefinitions@2018-01-01-preview' existing = {\\n name: contributor\\n}\\n\\nresource rbac 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {\\n name: guid(subscription().id, aadPrincipalId, contributor)\\n properties: {\\n roleDefinitionId: roleDef.id\\n principalId: aadPrincipalId\\n }\\n}\\n\\noutput storageName array = stg.outputs.containerProps\\n\";"],"names":[],"sourceRoot":""}

2
5147.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5147],{5147:(n,e,s)=>{s.r(e),s.d(e,{default:()=>i});const i="program GreetingsNumberOfTimes;\n\n{$APPTYPE CONSOLE}\n\n{$R *.res}\n\nuses\n System.SysUtils;\n\nvar\n greetingsMessage: string;\n numberOfTimes, i: integer;\n\nbegin\n try\n { TODO -oUser -cConsole Main : Insert code here }\n greetingsMessage := 'Hello World!';\n numberOfTimes := 10;\n\n for i := 1 to numberOfTimes do\n begin\n Writeln(greetingsMessage);\n end;\n except\n on E: Exception do\n Writeln(E.ClassName, ': ', E.Message);\n end;\nend.\n"}}]);
//# sourceMappingURL=5147.js.map

1
5147.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5147.js","mappings":"8IAAA,kf","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.pascal.txt"],"sourcesContent":["export default \"program GreetingsNumberOfTimes;\\n\\n{$APPTYPE CONSOLE}\\n\\n{$R *.res}\\n\\nuses\\n System.SysUtils;\\n\\nvar\\n greetingsMessage: string;\\n numberOfTimes, i: integer;\\n\\nbegin\\n try\\n { TODO -oUser -cConsole Main : Insert code here }\\n greetingsMessage := 'Hello World!';\\n numberOfTimes := 10;\\n\\n for i := 1 to numberOfTimes do\\n begin\\n Writeln(greetingsMessage);\\n end;\\n except\\n on E: Exception do\\n Writeln(E.ClassName, ': ', E.Message);\\n end;\\nend.\\n\";"],"names":[],"sourceRoot":""}

2
5161.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5161],{5161:(c,e,s)=>{s.r(e),s.d(e,{default:()=>i});const i="Content-Security-Policy: default-src 'self'; img-src *; media-src media1.com media2.com; script-src userscripts.example.com"}}]);
//# sourceMappingURL=5161.js.map

1
5161.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5161.js","mappings":"8IAAA,qI","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.csp.txt"],"sourcesContent":["export default \"Content-Security-Policy: default-src 'self'; img-src *; media-src media1.com media2.com; script-src userscripts.example.com\";"],"names":[],"sourceRoot":""}

2
5196.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5196],{5196:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});const i='//\n// Copyright (c) Microsoft Corporation. All rights reserved.\n//\n\n#import "UseQuotes.h"\n#import <Use/GTLT.h> \n\n/*\n\tMulti \n\tLine\n\tComments \n*/\n@implementation Test\n\n- (void) applicationWillFinishLaunching:(NSNotification *)notification\n{\n}\n\n- (IBAction)onSelectInput:(id)sender\n{\n NSString* defaultDir = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0];\n \n NSOpenPanel* panel = [NSOpenPanel openPanel];\n [panel setAllowedFileTypes:[[NSArray alloc] initWithObjects:@"ipa", @"xcarchive", @"app", nil]];\n \n [panel beginWithCompletionHandler:^(NSInteger result)\n {\n if (result == NSFileHandlingPanelOKButton)\n [self.inputTextField setStringValue:[panel.URL path]];\n }];\n return YES;\n\n int hex = 0xFEF1F0F;\n\t float ing = 3.14;\n\t ing = 3.14e0;\n\t ing = 31.4e-2;\n}\n\n-(id) initWithParams:(id<anObject>) aHandler withDeviceStateManager:(id<anotherObject>) deviceStateManager\n{\n // add a tap gesture recognizer\n UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];\n NSMutableArray *gestureRecognizers = [NSMutableArray array];\n [gestureRecognizers addObject:tapGesture];\n [gestureRecognizers addObjectsFromArray:scnView.gestureRecognizers];\n scnView.gestureRecognizers = gestureRecognizers;\n\n\treturn tapGesture;\n\treturn nil;\n}\n\n@end\n'}}]);
//# sourceMappingURL=5196.js.map

1
5196.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5196.js","mappings":"8IAAA,47C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.objective-c.txt"],"sourcesContent":["export default \"//\\n// Copyright (c) Microsoft Corporation. All rights reserved.\\n//\\n\\n#import \\\"UseQuotes.h\\\"\\n#import <Use/GTLT.h> \\n\\n/*\\n\\tMulti \\n\\tLine\\n\\tComments \\n*/\\n@implementation Test\\n\\n- (void) applicationWillFinishLaunching:(NSNotification *)notification\\n{\\n}\\n\\n- (IBAction)onSelectInput:(id)sender\\n{\\n NSString* defaultDir = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0];\\n \\n NSOpenPanel* panel = [NSOpenPanel openPanel];\\n [panel setAllowedFileTypes:[[NSArray alloc] initWithObjects:@\\\"ipa\\\", @\\\"xcarchive\\\", @\\\"app\\\", nil]];\\n \\n [panel beginWithCompletionHandler:^(NSInteger result)\\n {\\n if (result == NSFileHandlingPanelOKButton)\\n [self.inputTextField setStringValue:[panel.URL path]];\\n }];\\n return YES;\\n\\n int hex = 0xFEF1F0F;\\n\\t float ing = 3.14;\\n\\t ing = 3.14e0;\\n\\t ing = 31.4e-2;\\n}\\n\\n-(id) initWithParams:(id<anObject>) aHandler withDeviceStateManager:(id<anotherObject>) deviceStateManager\\n{\\n // add a tap gesture recognizer\\n UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];\\n NSMutableArray *gestureRecognizers = [NSMutableArray array];\\n [gestureRecognizers addObject:tapGesture];\\n [gestureRecognizers addObjectsFromArray:scnView.gestureRecognizers];\\n scnView.gestureRecognizers = gestureRecognizers;\\n\\n\\treturn tapGesture;\\n\\treturn nil;\\n}\\n\\n@end\\n\";"],"names":[],"sourceRoot":""}

2
5210.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5210],{5210:(n,t,e)=>{e.r(t),e.d(t,{default:()=>i});const i='// Run this cell using Ctrl+Enter (⌘+Enter on Mac)\n// Then run the next cell to see the output\n\nopen Microsoft.Quantum.Diagnostics;\n\noperation QubitsDemo () : Unit {\n // This line allocates a qubit in state |0⟩\n use q = Qubit();\n Message("State |0⟩:");\n\n // This line prints out the state of the quantum computer\n // Since only one qubit is allocated, only its state is printed\n DumpMachine();\n\n // This line changes the qubit from state |0⟩ to state |1⟩\n X(q);\n\n Message("State |1⟩:");\n DumpMachine();\n\n // This line changes the qubit to state |-⟩ = (1/sqrt(2))(|0⟩ - |1⟩)\n // That is, this puts the qubit into a superposition\n // 1/sqrt(2) is approximately 0.707107\n H(q);\n\n Message("State |-⟩:");\n DumpMachine();\n\n // This line changes the qubit to state |-i⟩ = (1/sqrt(2))(|0⟩ - i|1⟩)\n S(q);\n\n Message("State |-i⟩:");\n DumpMachine();\n\n // This will put the qubit into an uneven superposition,\n // where the amplitudes of |0⟩ and |1⟩ have different moduli\n Rx(2.0, q);\n Ry(1.0, q);\n\n Message("Uneven superposition state:");\n DumpMachine();\n\n // This line returns the qubit to state |0⟩\n Reset(q);\n}\n'}}]);
//# sourceMappingURL=5210.js.map

1
5210.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5210.js","mappings":"8IAAA,ytC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.qsharp.txt"],"sourcesContent":["export default \"// Run this cell using Ctrl+Enter (⌘+Enter on Mac)\\n// Then run the next cell to see the output\\n\\nopen Microsoft.Quantum.Diagnostics;\\n\\noperation QubitsDemo () : Unit {\\n // This line allocates a qubit in state |0⟩\\n use q = Qubit();\\n Message(\\\"State |0⟩:\\\");\\n\\n // This line prints out the state of the quantum computer\\n // Since only one qubit is allocated, only its state is printed\\n DumpMachine();\\n\\n // This line changes the qubit from state |0⟩ to state |1⟩\\n X(q);\\n\\n Message(\\\"State |1⟩:\\\");\\n DumpMachine();\\n\\n // This line changes the qubit to state |-⟩ = (1/sqrt(2))(|0⟩ - |1⟩)\\n // That is, this puts the qubit into a superposition\\n // 1/sqrt(2) is approximately 0.707107\\n H(q);\\n\\n Message(\\\"State |-⟩:\\\");\\n DumpMachine();\\n\\n // This line changes the qubit to state |-i⟩ = (1/sqrt(2))(|0⟩ - i|1⟩)\\n S(q);\\n\\n Message(\\\"State |-i⟩:\\\");\\n DumpMachine();\\n\\n // This will put the qubit into an uneven superposition,\\n // where the amplitudes of |0⟩ and |1⟩ have different moduli\\n Rx(2.0, q);\\n Ry(1.0, q);\\n\\n Message(\\\"Uneven superposition state:\\\");\\n DumpMachine();\\n\\n // This line returns the qubit to state |0⟩\\n Reset(q);\\n}\\n\";"],"names":[],"sourceRoot":""}

2
5279.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5279],{5279:(e,l,n)=>{n.r(l),n.d(l,{default:()=>t});const t='<!DOCTYPE html>\n<html>\n <head>\n <meta charset="UTF-8">\n <title>{% block title %}Welcome!{% endblock %}</title>\n {% block stylesheets %}{% endblock %}\n </head>\n <body>\n {% block body %}{% endblock %}\n {% block javascripts %}{% endblock %}\n </body>\n</html>\n'}}]);
//# sourceMappingURL=5279.js.map

1
5279.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5279.js","mappings":"8IAAA,oU","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.twig.txt"],"sourcesContent":["export default \"<!DOCTYPE html>\\n<html>\\n <head>\\n <meta charset=\\\"UTF-8\\\">\\n <title>{% block title %}Welcome!{% endblock %}</title>\\n {% block stylesheets %}{% endblock %}\\n </head>\\n <body>\\n {% block body %}{% endblock %}\\n {% block javascripts %}{% endblock %}\\n </body>\\n</html>\\n\";"],"names":[],"sourceRoot":""}

2
5489.js Normal file
View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5489],{5489:(t,e,p)=>{p.r(e),p.d(e,{default:()=>n});const n="rem *******Begin Comment**************\nrem This program starts the superapp batch program on the network,\nrem directs the output to a file, and displays the file\nrem in Notepad.\nrem *******End Comment**************\n@echo off\nif exist C:\\output.txt goto EMPTYEXISTS\nsetlocal\n\tpath=g:\\programs\\superapp;%path%\n\tcall superapp>C:\\output.txt\nendlocal\n:EMPTYEXISTS\nstart notepad c:\\output.txt"}}]);
//# sourceMappingURL=5489.js.map

1
5489.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"5489.js","mappings":"8IAAA,+Z","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/home-samples/sample.bat.txt"],"sourcesContent":["export default \"rem *******Begin Comment**************\\nrem This program starts the superapp batch program on the network,\\nrem directs the output to a file, and displays the file\\nrem in Notepad.\\nrem *******End Comment**************\\n@echo off\\nif exist C:\\\\output.txt goto EMPTYEXISTS\\nsetlocal\\n\\tpath=g:\\\\programs\\\\superapp;%path%\\n\\tcall superapp>C:\\\\output.txt\\nendlocal\\n:EMPTYEXISTS\\nstart notepad c:\\\\output.txt\";"],"names":[],"sourceRoot":""}

Some files were not shown because too many files have changed in this diff Show more