conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Change makeArray -> arrayOfSize to fix compilation error\n"
},
{
"from": "human",
"value": "\nArray<Cell<Key->Item>?> makeCellEntryArray<Key,Item>(Integer size) \n given Key satisfies Object \n given Item satisfies Object {\n\n return makeArray<Cell<Key->It... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix unstable test by not checking collections order\n"
},
{
"from": "human",
"value": "import ceylon.language.meta.declaration { Module }\nimport ceylon.test { test, assertEquals }\nimport ceylon.build.runner { findTopLevelAnnotatedGoals, findAnnotatedIncludes }\nim... | ceylon | chosen |
[
{
"from": "system",
"value": "Add a \"maxLineLength\" formatting option.\n"
},
{
"from": "human",
"value": "{FormattingOption+} formattingOptions = {\n FormattingOption {\n \t\"The indentation mode of the formatter.\";\n \t\"IndentMode\"; \"indentMode\"; /* = */ \"Spaces(4)\";\n }\n}... | ceylon | chosen |
[
{
"from": "system",
"value": "Add test for named arg funs with type params\n\nPart of #108.\n"
},
{
"from": "human",
"value": "interface SecondOrder<Box>\n given Box<Value> {\n shared formal Box<Float> createBox(Float float);\n}\nvoid takesCallableParamWithTypeParam(T f<T>(T t)) {}\n"
... | ceylon | chosen |
[
{
"from": "system",
"value": "Print obtained classname in error message\n"
},
{
"from": "human",
"value": "import check {...}\n\nvoid test_outer_inner_safety() {\n class Outer() {\n shared class Inner() { }\n }\n Outer? o = null;\n Outer.Inner? i1 = o?.Inner();\n Outer.Inner? cons() = o?... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix optional types in back-end.\n"
},
{
"from": "human",
"value": "public class SimpleList<T> (T? head, SimpleList<T>? tail)\n satisfies Iterable<T>\n{\n public T? car = head;\n public SimpleList<T> ? cdr = tail;\n\n public Iterator<T> iterator() {\n ... | ceylon | chosen |
[
{
"from": "system",
"value": "Make tests handle antlr module debug package\n"
},
{
"from": "human",
"value": "import ceylon.language.meta { modules }\nimport ceylon.language.meta.declaration { ClassDeclaration }\n\nshared final annotation class TestAnnotation()\n satisfies OptionalAnnotat... | ceylon | chosen |
[
{
"from": "system",
"value": "Add tests for variadic value declaration\n"
},
{
"from": "human",
"value": "import ceylon.ast.core {\n Annotations,\n ValueDeclaration,\n DynamicModifier,\n LIdentifier,\n Type\n}\nimport ceylon.ast.redhat {\n RedHatTransformer,\n valueDeclarati... | ceylon | chosen |
[
{
"from": "system",
"value": "Add Gavin's tests for the 3 styles of higher-order function calling\n"
},
{
"from": "human",
"value": "import assert { ... }\n\nElement? find<Element>(Array<Element> a, Boolean f(Element x)) {\n for (Element e in a) {\n if (f(e)) {\n return e;\n }\n }\n... | ceylon | chosen |
[
{
"from": "system",
"value": "S11N: Add support for persisting arrays.\n"
},
{
"from": "human",
"value": "import ceylon.language.meta.model {\n Attribute,\n Type\n}\nimport ceylon.language.meta.declaration {\n ValueDeclaration,\n TypeParameter\n}\n\n\"Contract for flattening the stat... | ceylon | chosen |
[
{
"from": "system",
"value": "Update import of ANTLR runtime"
},
{
"from": "human",
"value": "\"A formatter for the Ceylon programming language.\"\nmodule ceylon.formatter \"1.0.0\" {\n shared import java.base \"7\";\n shared import com.redhat.ceylon.typechecker \"1.0.0\";\n shared impo... | ceylon | chosen |
[
{
"from": "system",
"value": "Add the required native annotation"
},
{
"from": "human",
"value": "\"Module that allows developping the Ceylon IDE in Ceylon\"\nby(\"David Festal\")\nmodule com.redhat.ceylon.eclipse.ui \"1.1.1\" {\n shared import com.redhat.ceylon.typechecker \"1.1.1\";\n sh... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix wrong order of arguments in doc"
},
{
"from": "human",
"value": "\"Given two streams, form a new stream by applying a \n function to the arguments in the given streams. The \n length of the resulting stream is the length of \n the shorter of the two given stream... | ceylon | chosen |
[
{
"from": "system",
"value": "Add missing charsets to charsetsByAlias\n"
},
{
"from": "human",
"value": "import ceylon.buffer.codec {\n buildCodecLookup\n}\n\n\"A mapping of all supported character sets.\n \n Currently this lists contains:\n \n - ASCII\n - ISO 8859 1\n - UTF-8\n - UTF-16\n \"... | ceylon | chosen |
[
{
"from": "system",
"value": "Remove accidental call to print()\n"
},
{
"from": "human",
"value": "doc \"Creates a `Map` that contains the `Iterable`'s\n elements, grouped in `Sequence`s under the\n keys provided by the grouping function.\"\nshared Map<Group, {Element+}> group<Group, Ele... | ceylon | chosen |
[
{
"from": "system",
"value": "Add simple test for type alias\n"
},
{
"from": "human",
"value": "import check { ... }\n\nshared class AliasingClass() {\n shared interface AliasingIface {\n shared Boolean aliasingIface() { return true; }\n }\n shared class AliasingInner() {\n ... | ceylon | chosen |
[
{
"from": "system",
"value": "Add test for generic anonymous functions\n\nPart of #108.\n"
},
{
"from": "human",
"value": "interface SecondOrder<Box>\n given Box<Value> {\n shared formal Box<Float> createBox(Float float);\n}\nvoid takesCallableParamWithTypeParam(T f<T>(T t)) {}\nvalue ... | ceylon | chosen |
[
{
"from": "system",
"value": "Use the `utf-8` charset for html\n"
},
{
"from": "human",
"value": "import ceylon.html {\n\tHead,\n\tBody,\n\tHtml\n}\nimport ceylon.markdown.core {\n\tDocument\n}\n\n\"Render Markdown as a complete HTML document. This method returns an [[Html]] object.\n \n ... | ceylon | chosen |
[
{
"from": "system",
"value": "Add test for backtick-less meta literals\n\nJust copied from the existing test, with all backticks removed.\n\nPart of #143.\n"
},
{
"from": "human",
"value": "void decLiterals() {\n value clM = `module ceylon.language`;\n value clP = `package ceylon.language`... | ceylon | chosen |
[
{
"from": "system",
"value": "Add test for parameterized exprs with type params\n\nAnother part of #108 that already works without having to change\nanything. Looks like ParameterizedException’s default walker order works\nfor us.\n"
},
{
"from": "human",
"value": "interface SecondOrder<Box>\n ... | ceylon | chosen |
[
{
"from": "system",
"value": "Use HashMap instead of LazyMap"
},
{
"from": "human",
"value": "import ceylon.build.task { Goal, GoalSet }\nimport ceylon.collection { LinkedList }\n\n\n\"An interactive console.\"\nvoid console({<Goal|GoalSet>+} goals) {\n value exitMessages = LazyMap<Integer, S... | ceylon | chosen |
[
{
"from": "system",
"value": "Test condition list with comprehensions\n"
},
{
"from": "human",
"value": "import check {...}\n\nshared void test() {\n Boolean a = true;\n Boolean b = false;\n variable value count := 0;\n if (a && b) {\n fail(\"WTF?\");\n } else if (a || b) {... | ceylon | chosen |
[
{
"from": "system",
"value": "Add test for anon functions with type constraints\n\nPart of #108.\n"
},
{
"from": "human",
"value": "interface SecondOrder<Box>\n given Box<Value> {\n shared formal Box<Float> createBox(Float float);\n}\nvoid takesCallableParamWithTypeParam(T f<T>(T t)) {... | ceylon | chosen |
[
{
"from": "system",
"value": "Add tests for escaped character literals\n"
},
{
"from": "human",
"value": "void characters() {\n value c = `a`;\n assert(c.lowercase, \"lowercase char\");\n assert(!c.uppercase, \"lowercase char\");\n assert(`A`.uppercase, \"uppercase char\");\n asse... | ceylon | chosen |
[
{
"from": "system",
"value": "Remove creation of new array.\n"
},
{
"from": "human",
"value": "import java.nio {\n JByteBuffer=ByteBuffer\n}\nimport java.lang {\n ByteArray\n}\n\nshared {Byte*} toBytes(JByteBuffer[] jByteBufferArray) => \n jByteBufferArray.flatMap((JByteBuffer element)... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix for the JS backend: made run method shared\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2011 Red Hat Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Yo... | ceylon | chosen |
[
{
"from": "system",
"value": "Make run with latest ceylon\n"
},
{
"from": "human",
"value": "\"Something that can go through a transition and is meant to \n be be fulfilled or rejected.\"\nby(\"Julien Viet\")\nshared interface Resolver<in Value> {\n\n \"Fulfills the promise with a value or a ... | ceylon | chosen |
[
{
"from": "system",
"value": "Complete the array tests (which now pass with flying colors)\n"
},
{
"from": "human",
"value": "//Array tests\nvoid testArrays() {\n assert(!nonempty arrayOfNone(), \"arrayOfNone\");\n value a1 = arrayOfSome({1});\n //assert(nonempty a1, \"nonempty array\")... | ceylon | chosen |
[
{
"from": "system",
"value": "Remove java.tls import from ceylon.buffer\n"
},
{
"from": "human",
"value": "by (\"Stéphane Épardaud\", \"Alex Szczuczko\")\nmodule ceylon.buffer \"1.2.1\" {\n import ceylon.collection \"1.2.1\";\n native (\"jvm\") import java.base \"7\";\n native (\"jvm\")... | ceylon | chosen |
[
{
"from": "system",
"value": "Update if expressions test for changed indentation\n\nSee 681239e and #104.\n"
},
{
"from": "human",
"value": "Anything ifExpression =\n if (true || false)\n then 1\n else 2;\nvoid ifExpr() {\n print(if (true) then 1 else 0);\n}\n"
},
{
... | ceylon | chosen |
[
{
"from": "system",
"value": "Add missing usage example for constructorDefinition\n\nI must’ve forgotten this in 486bb73 (cc #71).\n"
},
{
"from": "human",
"value": "import ceylon.ast.core {\n Annotations,\n ConstructorDefinition,\n Declaration,\n ExtendedType,\n Parameter,\n P... | ceylon | chosen |
[
{
"from": "system",
"value": "Remove unused dependency on ceylon.collection\n"
},
{
"from": "human",
"value": "\"Date and Time library for Ceylon language SDK.\n \n This library is loosely modeled/inspired by the JodaTime/JSR-310 date/time library.\n \"\nby (\"Diego Coronel\", \"Roland Tepp\")\n... | ceylon | chosen |
[
{
"from": "system",
"value": "Update to ceylon 1.3.1 + vertx 3.3.3\n"
},
{
"from": "human",
"value": "native(\"jvm\") module org.otherone.vhostproxy.vertx \"4\" {\n shared import io.vertx.ceylon.core \"3.3.2\";\n //shared import \"io.vertx:vertx-lang-ceylon\" \"3.3.0-SNAPSHOT\";\n //sha... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix source-gen bug: doc would be missing line breaks\n"
},
{
"from": "human",
"value": "import ceylon.collection {\n MutableList,\n ArrayList\n}\n\"Run the module `source_gen.ceylon.ast`.\n \n See [this gist](https://gist.github.com/lucaswerkmeister/a4da0fa5d9... | ceylon | chosen |
[
{
"from": "system",
"value": "Update doc and ceylon.math version\n"
},
{
"from": "human",
"value": "doc \"Components for JDBC-based database connectivity.\"\nby \"Enrique Zamudio\"\nlicense \"Apache Software License 2.0\"\nmodule ceylon.dbc '0.1' {\n import ceylon.math '0.3.2';\n}\n"
},
{... | ceylon | chosen |
[
{
"from": "system",
"value": "Format source code (ws in license annotation)\n"
},
{
"from": "human",
"value": "\"A formatter for the Ceylon programming language.\"\nby (\"Lucas Werkmeister <mail@lucaswerkmeister.de>\")\nlicense(\"http://www.apache.org/licenses/LICENSE-2.0.html\")\nmodule ceylon.... | ceylon | chosen |
[
{
"from": "system",
"value": "Update for Ceylon 1.1 (typechecker version)\n"
},
{
"from": "human",
"value": "\"A formatter for the Ceylon programming language.\"\nmodule ceylon.formatter \"1.0.0\" {\n shared import java.base \"7\";\n shared import com.redhat.ceylon.typechecker \"1.0.0\";\n... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix ceylon.ast(.api) link in test.ceylon.ast.api doc\n\nAftermath of 408bc4a.\n"
},
{
"from": "human",
"value": "\"Tests for the [[ceylon.ast module|module ceylon.ast]]\"\nby (\"Lucas Werkmeister <mail@lucaswerkmeister.de>\")\nlicense(\"http://www.apache.org/license... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix a test for Array.ofSize\n"
},
{
"from": "human",
"value": "@test\nshared void bug713() {\n value t = `Array<String>.OfSize` == `Array<String>.OfSize`;\n}\n"
},
{
"from": "gpt",
"value": "@test\nshared void bug713() {\n value t = `Array<String>.... | ceylon | chosen |
[
{
"from": "system",
"value": "Add create parameter lists internal function\n"
},
{
"from": "human",
"value": "import ceylon.ast.core {\n Parameter,\n Parameters\n}\n\n\"Converts a stream of [[parameters]] to a [[Parameters]] object.\"\nParameters parameters_internal(Parameters|{Parameter*}... | ceylon | chosen |
[
{
"from": "system",
"value": "Remove unused imports in tests\n"
},
{
"from": "human",
"value": "import ceylon.ast.core {\n Annotations,\n Artifact,\n Module,\n ModuleImport,\n ModuleSpecifier,\n Repository,\n StringLiteral\n}\nimport ceylon.ast.redhat {\n RedHatTransforme... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix name of create positional arguments test\n"
},
{
"from": "human",
"value": "import ceylon.ast.core {\n thisInstance,\n ArgumentList,\n PositionalArguments,\n SpreadArgument\n}\nimport ceylon.ast.create {\n createBaseExpression=baseExpression,\n ... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix doc typo: langauge -> language"
},
{
"from": "human",
"value": "\"The Ceylon language module containing the core definitions \n referred to by the [language specification][spec], along \n with some basic functionality of use to most programs:\n \n - The [[root p... | ceylon | chosen |
[
{
"from": "system",
"value": "Add usage example to ScopedKey documentation\n"
},
{
"from": "human",
"value": "import ceylon.language.meta.declaration {\n AnnotatedDeclaration\n}\n\n\"A key by which a [[Node]]’s additional information\n can be accessed.\"\nshared class Key<Type>(name)\n ... | ceylon | chosen |
[
{
"from": "system",
"value": "Add test for callable parameters with type parameters\n\nThis part of #108 actually already works, since parameters don’t have\ntheir own node type: They’re AttributeDeclarations or\nMethodDeclarations, and MethodDeclarations of course already support\ntype parameters.\n"
},
... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix typo in doc text\n"
},
{
"from": "human",
"value": "import ceylon.io.impl {\n InputStreamAdapter,\n OutputStreamAdapter\n}\n\nimport java.lang {\n System {\n javaIn=\\iin,\n javaOut=\\iout,\n javaErr=err\n }\n}\n\n\"A [[ReadableF... | ceylon | chosen |
[
{
"from": "system",
"value": "Add missing switch type cases to typeToCeylon\n"
},
{
"from": "human",
"value": "import ceylon.ast.api {\n Type\n}\nimport com.redhat.ceylon.compiler.typechecker.tree {\n Tree {\n JGroupedType=GroupedType,\n JSimpleType=SimpleType,\n JStat... | ceylon | chosen |
[
{
"from": "system",
"value": "Fix for sequenced args and iterables\n"
},
{
"from": "human",
"value": "import ceylon.file { ... }\n\nimport java.nio.file { JPath=Path, \n Files { movePath=move, \n newDirectoryStream } }\n\nclass ConcreteDirector... | ceylon | chosen |
[
{
"from": "human",
"value": "Add a test for DumbLineBreaks\n"
},
{
"from": "gpt",
"value": "import ceylon.test { test }\nimport ceylon.formatter { FormattingWriter, maxDesire }\nimport ceylon.formatter.options { parseLineBreakStrategy, FormattingOptions, LineBreakStrategy }\nimport ceylon.file {... | ceylon | chosen |
README.md exists but content is empty.
- Downloads last month
- 7