commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
9953064ace539fca4bdb621160924590ba1a15e3 | src/nupic/proto/TemporalMemoryProto.capnp | src/nupic/proto/TemporalMemoryProto.capnp | @0xc5bf8243b0c10764;
# TODO: Use absolute path
using import "ConnectionsProto.capnp".ConnectionsProto;
using import "RandomProto.capnp".RandomProto;
# Next ID: 16
struct TemporalMemoryProto {
columnDimensions @0 :List(UInt32);
cellsPerColumn @1 :UInt32;
activationThreshold @2 :UInt32;
learningRadius @3 :UInt... | Add Temporal Memory serialization schema | Add Temporal Memory serialization schema
| Cap'n Proto | agpl-3.0 | EricSB/nupic.core,breznak/nupic.core,brev/nupic.core,numenta/nupic.core,akhilaananthram/nupic.core,neuroidss/nupic.core,neuroidss/nupic.core,jaredweiss/nupic.core,sambitgaan/nupic.core,akhilaananthram/nupic.core,scottpurdy/nupic.core,rhyolight/nupic.core,breznak/nupic.core,utensil/nupic.core,subutai/nupic.core,subutai/... | |
bdf7bcc6ca065f0658cd7863ae827e8a09af498d | src/GLOBALS.mss | src/GLOBALS.mss | Version "2.0.0 beta3"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"
_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file... | Version "2.0.0b3"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"
_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file was... | Switch to no-space string to make the version value pass validation | Fixed: Switch to no-space string to make the version value pass validation
| CartoCSS | mit | music-encoding/sibmei,annplaksin/sibmei |
8b01f6ab2ec18e9085ef5cd2956137b3da9e10a3 | src/GLOBALS.mss | src/GLOBALS.mss | Version "2.0.0b3"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"
_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file was... | Version "2.0.0b3"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"
_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file was... | Update language in a message | Fixed: Update language in a message
| CartoCSS | mit | music-encoding/sibmei,annplaksin/sibmei |
38b8c156f4aa17011872b668de0a24224092b5f7 | src/GLOBALS.mss | src/GLOBALS.mss | Version "2.0.0 beta2"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"
_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file... | Version "2.0.0 beta3"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"
_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file... | Update release to beta 3 | Update release to beta 3
| CartoCSS | mit | annplaksin/sibmei,music-encoding/sibmei |
ed4d75911f74561afe8875eacfa7250b21b77796 | collection/source/ceylon/collection/makeCellArray.ceylon | collection/source/ceylon/collection/makeCellArray.ceylon |
Array<Cell<Key->Item>?> makeCellEntryArray<Key,Item>(Integer size)
given Key satisfies Object
given Item satisfies Object {
return makeArray<Cell<Key->Item>?>(size, (Integer index) null);
}
Array<Cell<Element>?> makeCellElementArray<Element>(Integer size) {
return makeArray<Cell<Element>?>(size, (In... |
Array<Cell<Key->Item>?> makeCellEntryArray<Key,Item>(Integer size)
given Key satisfies Object
given Item satisfies Object {
return arrayOfSize<Cell<Key->Item>?>(size, null);
}
Array<Cell<Element>?> makeCellElementArray<Element>(Integer size) {
return arrayOfSize<Cell<Element>?>(size, null);
} | Change makeArray -> arrayOfSize to fix compilation error | Change makeArray -> arrayOfSize to fix compilation error
| Ceylon | apache-2.0 | vietj/ceylon-sdk,ASzc/ceylon-sdk,jeancharles-roger/ceylon-sdk,unratito/ceylon-sdk,jeancharles-roger/ceylon-sdk,rohitmohan96/ceylon-sdk,unratito/ceylon-sdk,ASzc/ceylon-sdk,jvasileff/ceylon-sdk,DiegoCoronel/ceylon-sdk,lucaswerkmeister/ceylon-sdk,DiegoCoronel/ceylon-sdk,vietj/ceylon-sdk,lucaswerkmeister/ceylon-sdk,jvasile... |
298f6baa3580d464430d258e27f446202809b9e0 | test-source/test/ceylon/build/runner/include-annotations-discovery.ceylon | test-source/test/ceylon/build/runner/include-annotations-discovery.ceylon | import ceylon.language.meta.declaration { Module }
import ceylon.test { test, assertEquals }
import ceylon.build.runner { findTopLevelAnnotatedGoals, findAnnotatedIncludes }
import mock.ceylon.build.runner.mock4 { include1, include2 }
import mock.ceylon.build.runner.mock4.subpackage { include3 }
test void shouldNotFin... | import ceylon.build.runner {
findTopLevelAnnotatedGoals,
findAnnotatedIncludes
}
import ceylon.collection {
HashSet
}
import ceylon.language.meta.declaration {
Module,
ValueDeclaration
}
import ceylon.test {
test,
assertEquals
}
import mock.ceylon.build.runner.mock4 {
include1,
include2
}
import mock.ceylon.b... | Fix unstable test by not checking collections order | Fix unstable test by not checking collections order
| Ceylon | apache-2.0 | ceylon/ceylon.build,HenningB/ceylon.build,ceylon/ceylon.build,HenningB/ceylon.build |
19e1b02c6fdeeebd2944dafbebafd650fa63c157 | source-gen/source_gen/ceylon/formatter/formattingOptions/formattingOptions.ceylon | source-gen/source_gen/ceylon/formatter/formattingOptions/formattingOptions.ceylon | {FormattingOption+} formattingOptions = {
FormattingOption {
"The indentation mode of the formatter.";
"IndentMode"; "indentMode"; /* = */ "Spaces(4)";
}
}; | {FormattingOption+} formattingOptions = {
FormattingOption {
"The indentation mode.";
"IndentMode"; "indentMode"; /* = */ "Spaces(4)";
},
FormattingOption {
"The maximum line length, or `null` for unlimited line length.";
"Integer?"; "maxLineLength"; /* = */ "null";
}
}; | Add a "maxLineLength" formatting option. | Add a "maxLineLength" formatting option.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
4ab67340c901782c29d091a50e23f4aaf1cf40e7 | test-samples/higherTypes.ceylon | test-samples/higherTypes.ceylon | interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
| interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
| Add test for named arg funs with type params | Add test for named arg funs with type params
Part of #108.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
b0706372e4a6f93fcdc214ecd1a4fa5c75e7fd42 | src/test/ceylon/members/outer.ceylon | src/test/ceylon/members/outer.ceylon | import check {...}
void test_outer_inner_safety() {
class Outer() {
shared class Inner() { }
}
Outer? o = null;
Outer.Inner? i1 = o?.Inner();
Outer.Inner? cons() = o?.Inner();
if (exists i1) {
fail("i1 should be null");
}
check(className(cons)=="ceylon.language::JsCallable", "cons is Callable")... | import check {...}
void test_outer_inner_safety() {
class Outer() {
shared class Inner() { }
}
Outer? o = null;
Outer.Inner? i1 = o?.Inner();
Outer.Inner? cons() = o?.Inner();
if (exists i1) {
fail("i1 should be null");
}
check(className(cons)=="ceylon.language::JsCallable", "cons is Callable, ... | Print obtained classname in error message | Print obtained classname in error message
| Ceylon | apache-2.0 | ceylon/ceylon-js,ceylon/ceylon-js,ceylon/ceylon-js |
40bf453440e42028cf8331a567d7a0c4e68001b1 | runtime/ceylon/language/SimpleList.ceylon | runtime/ceylon/language/SimpleList.ceylon | public class SimpleList<T> (T? head, SimpleList<T>? tail)
satisfies Iterable<T>
{
public T? car = head;
public SimpleList<T> ? cdr = tail;
public Iterator<T> iterator() {
return SimpleIterator<T>(this);
}
public class SimpleIterator<T> (SimpleList<T> ? l)
satisfies Iterator<T>
... | public class SimpleList<T> (T? head, SimpleList<T>? tail)
satisfies Iterable<T>
{
public Iterator<T> iterator() {
return SimpleIterator<T>(this);
}
public class SimpleIterator<T> (SimpleList<T> ? list)
satisfies Iterator<T>
{
T? head() {
if (exists list) {
... | Fix optional types in back-end. | Fix optional types in back-end.
| Ceylon | apache-2.0 | ceylon/ceylon.language,jvasileff/ceylon.language,unratito/ceylon.language,lucaswerkmeister/ceylon.language,unratito/ceylon.language,jvasileff/ceylon.language,ceylon/ceylon.language,lucaswerkmeister/ceylon.language |
ba88358284c44440400da23dcdb8c2da2618f4b3 | test/metamodel/bug347.ceylon | test/metamodel/bug347.ceylon | import ceylon.language.meta { modules }
import ceylon.language.meta.declaration { ClassDeclaration }
shared final annotation class TestAnnotation()
satisfies OptionalAnnotation<TestAnnotation, ClassDeclaration> {
}
@test
shared void bug347() {
for (value m in modules.list) {
if(m.name.startsWith("... | import ceylon.language.meta { modules }
import ceylon.language.meta.declaration { ClassDeclaration }
shared final annotation class TestAnnotation()
satisfies OptionalAnnotation<TestAnnotation, ClassDeclaration> {
}
@test
shared void bug347() {
for (value m in modules.list) {
if(m.name.startsWith("... | Make tests handle antlr module debug package | Make tests handle antlr module debug package
| Ceylon | apache-2.0 | ceylon/ceylon.language,ceylon/ceylon.language,unratito/ceylon.language,unratito/ceylon.language |
33d9cac4408ce9fe1c0c527047af374a71e5cdab | source/test/ceylon/ast/redhat/ValueDeclaration.ceylon | source/test/ceylon/ast/redhat/ValueDeclaration.ceylon | import ceylon.ast.core {
Annotations,
ValueDeclaration,
DynamicModifier,
LIdentifier,
Type
}
import ceylon.ast.redhat {
RedHatTransformer,
valueDeclarationToCeylon,
compileValueDeclaration
}
import com.redhat.ceylon.compiler.typechecker.tree {
Tree {
JAttributeDeclaration=Att... | import ceylon.ast.core {
Annotations,
ValueDeclaration,
DynamicModifier,
LIdentifier,
Type,
VariadicType
}
import ceylon.ast.redhat {
RedHatTransformer,
valueDeclarationToCeylon,
compileValueDeclaration
}
import com.redhat.ceylon.compiler.typechecker.tree {
Tree {
JAttrib... | Add tests for variadic value declaration | Add tests for variadic value declaration
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
f903853e3a4c94eae72cf59a763bfcb098acce22 | src/test/ceylon/functions/anonymous.ceylon | src/test/ceylon/functions/anonymous.ceylon | import assert { ... }
Element? find<Element>(Array<Element> a, Boolean f(Element x)) {
for (Element e in a) {
if (f(e)) {
return e;
}
}
return null;
}
void testAnonymous() {
print("Testing anonymous functions...");
value nums = array(1,2,3,4,5);
//Test positional argument call
variable val... | import assert { ... }
Element? find<Element>(Array<Element> a, Boolean f(Element x)) {
for (Element e in a) {
if (f(e)) {
return e;
}
}
return null;
}
void testAnonymous() {
print("Testing anonymous functions...");
value nums = array(1,2,3,4,5);
//Test positional argument call
variable val... | Add Gavin's tests for the 3 styles of higher-order function calling | Add Gavin's tests for the 3 styles of higher-order function calling
| Ceylon | apache-2.0 | ceylon/ceylon-js,ceylon/ceylon-js,ceylon/ceylon-js |
288c8d4b59e3471163b4f733536ab54928525ef7 | src/ceylon/language/serialization/Deconstructed.ceylon | src/ceylon/language/serialization/Deconstructed.ceylon | import ceylon.language.meta.model {
Attribute,
Type
}
import ceylon.language.meta.declaration {
ValueDeclaration,
TypeParameter
}
"Contract for flattening the state of an instance of a class.
This interface is implemented by a serialization library."
shared interface Deconstructor {
"Adds th... | import ceylon.language.meta.model {
Attribute,
Type
}
import ceylon.language.meta.declaration {
ValueDeclaration,
TypeParameter
}
"Contract for flattening the state of an instance of a class.
This interface is implemented by a serialization library."
shared interface Deconstructor {
"Adds th... | Add support for persisting arrays. | S11N: Add support for persisting arrays.
| Ceylon | apache-2.0 | ceylon/ceylon.language,ceylon/ceylon.language,unratito/ceylon.language,jvasileff/ceylon.language,jvasileff/ceylon.language,unratito/ceylon.language |
1625bb893e2c9765c79d0ba35e55faa2c7155b15 | source/ceylon/formatter/module.ceylon | source/ceylon/formatter/module.ceylon | "A formatter for the Ceylon programming language."
module ceylon.formatter "1.0.0" {
shared import java.base "7";
shared import com.redhat.ceylon.typechecker "1.0.0";
shared import org.antlr.runtime "3.4";
import ceylon.time "1.0.0";
import ceylon.interop.java "1.0.0";
import ceylon.collection "... | "A formatter for the Ceylon programming language."
module ceylon.formatter "1.0.0" {
shared import java.base "7";
shared import com.redhat.ceylon.typechecker "1.0.0";
shared import 'org.antlr-runtime' "3.4";
import ceylon.time "1.0.0";
import ceylon.interop.java "1.0.0";
import ceylon.collection... | Update import of ANTLR runtime | Update import of ANTLR runtime | Ceylon | apache-2.0 | HenningB/ceylon.formatter |
6bc551c905102d13330c28c34259f78572d4adf7 | plugins/com.redhat.ceylon.eclipse.ui/ceylon/source/com/redhat/ceylon/eclipse/ui/module.ceylon | plugins/com.redhat.ceylon.eclipse.ui/ceylon/source/com/redhat/ceylon/eclipse/ui/module.ceylon | "Module that allows developping the Ceylon IDE in Ceylon"
by("David Festal")
module com.redhat.ceylon.eclipse.ui "1.1.1" {
shared import com.redhat.ceylon.typechecker "1.1.1";
shared import com.redhat.ceylon.model "1.1.1";
shared import ceylon.collection "1.1.1";
import ceylon.interop.java "1.1.1";
... | "Module that allows developping the Ceylon IDE in Ceylon"
by("David Festal")
native("java")
module com.redhat.ceylon.eclipse.ui "1.1.1" {
shared import com.redhat.ceylon.typechecker "1.1.1";
shared import com.redhat.ceylon.model "1.1.1";
shared import ceylon.collection "1.1.1";
import ceylon.interop.jav... | Add the required native annotation | Add the required native annotation | Ceylon | epl-1.0 | rohitmohan96/ceylon-ide-eclipse,rohitmohan96/ceylon-ide-eclipse |
b42acfbf94e768d50122cce043a0861fb8d44d21 | src/ceylon/language/mapPairs.ceylon | src/ceylon/language/mapPairs.ceylon | "Given two streams, form a new stream by applying a
function to the arguments in the given streams. The
length of the resulting stream is the length of
the shorter of the two given streams.
Thus:
mapPairs(xs,ys,fun)[i]==fun(xs[i],ys[i])
for every `0<=i<min({xs.size,ys.size})`."
shared {Result*} mapPa... | "Given two streams, form a new stream by applying a
function to the arguments in the given streams. The
length of the resulting stream is the length of
the shorter of the two given streams.
Thus:
mapPairs(fun,xs,ys)[i]==fun(xs[i],ys[i])
for every `0<=i<min({xs.size,ys.size})`."
shared {Result*} mapPa... | Fix wrong order of arguments in doc | Fix wrong order of arguments in doc | Ceylon | apache-2.0 | lucaswerkmeister/ceylon.language,jvasileff/ceylon.language,jvasileff/ceylon.language,unratito/ceylon.language,unratito/ceylon.language,ceylon/ceylon.language,lucaswerkmeister/ceylon.language,ceylon/ceylon.language |
7934301c78924b2fcc97acb1a8adc59d9981fb77 | source/ceylon/buffer/charset/lookup.ceylon | source/ceylon/buffer/charset/lookup.ceylon | import ceylon.buffer.codec {
buildCodecLookup
}
"A mapping of all supported character sets.
Currently this lists contains:
- ASCII
- ISO 8859 1
- UTF-8
- UTF-16
"
shared Map<String,Charset> charsetsByAlias = buildCodecLookup {
utf8
};
| import ceylon.buffer.codec {
buildCodecLookup
}
"A mapping of all supported character sets.
Currently this lists contains:
- ASCII
- ISO 8859 1
- UTF-8
- UTF-16
"
shared Map<String,Charset> charsetsByAlias = buildCodecLookup {
utf8,
utf16,
iso_8859_1,
ascii
};
| Add missing charsets to charsetsByAlias | Add missing charsets to charsetsByAlias
| Ceylon | apache-2.0 | ASzc/ceylon-sdk,ASzc/ceylon-sdk,rohitmohan96/ceylon-sdk,matejonnet/ceylon-sdk |
dd53ee32b680cd53d1dec28c501567bb3b16027b | source/ceylon/collection/group.ceylon | source/ceylon/collection/group.ceylon | doc "Creates a `Map` that contains the `Iterable`'s
elements, grouped in `Sequence`s under the
keys provided by the grouping function."
shared Map<Group, {Element+}> group<Group, Element>({Element*} elements,
"A function that returns the key under which to group the
specified element."
Group gro... | doc "Creates a `Map` that contains the `Iterable`'s
elements, grouped in `Sequence`s under the
keys provided by the grouping function."
shared Map<Group, {Element+}> group<Group, Element>({Element*} elements,
"A function that returns the key under which to group the
specified element."
Group gro... | Remove accidental call to print() | Remove accidental call to print()
| Ceylon | apache-2.0 | jvasileff/ceylon-sdk,lucaswerkmeister/ceylon-sdk,unratito/ceylon-sdk,lucaswerkmeister/ceylon-sdk,unratito/ceylon-sdk,jeancharles-roger/ceylon-sdk,vietj/ceylon-sdk,jeancharles-roger/ceylon-sdk,ASzc/ceylon-sdk,rohitmohan96/ceylon-sdk,matejonnet/ceylon-sdk,DiegoCoronel/ceylon-sdk,DiegoCoronel/ceylon-sdk,ASzc/ceylon-sdk,jv... |
20bbaaeccec708de2efa7838b7da149dbc89dbfe | src/test/ceylon/misc/aliases.ceylon | src/test/ceylon/misc/aliases.ceylon | import check { ... }
shared class AliasingClass() {
shared interface AliasingIface {
shared Boolean aliasingIface() { return true; }
}
shared class AliasingInner() {
shared Boolean aliasingInner() { return true; }
}
}
class AliasingSubclass() extends AliasingClass() {
shared class ... | import check { ... }
alias Strinteger = String|Integer;
shared class AliasingClass() {
shared interface AliasingIface {
shared Boolean aliasingIface() { return true; }
}
shared class AliasingInner() {
shared Boolean aliasingInner() { return true; }
}
}
class AliasingSubclass() extends... | Add simple test for type alias | Add simple test for type alias
| Ceylon | apache-2.0 | ceylon/ceylon-js,ceylon/ceylon-js,ceylon/ceylon-js |
56f20db1bb3c4744fcaf64cb83f93afd8974954e | test-samples/higherTypes.ceylon | test-samples/higherTypes.ceylon | interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
| interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
value anonymousGenericFunction = <T>(T t) => t;
| Add test for generic anonymous functions | Add test for generic anonymous functions
Part of #108.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
c581e805b1f3ec5c1eca2a4c43e6ba741300609c | source/ceylon/markdown/html/renderHtml.ceylon | source/ceylon/markdown/html/renderHtml.ceylon | import ceylon.html {
Head,
Body,
Html
}
import ceylon.markdown.core {
Document
}
"Render Markdown as a complete HTML document. This method returns an [[Html]] object.
value html = renderCompleteHtml(tree);"
shared Html renderCompleteHtml(Document document) => Html {
Head { },
Body {
children = Ht... | import ceylon.html {
Head,
Body,
Html,
Meta
}
import ceylon.markdown.core {
Document
}
"Render Markdown as a complete HTML document. This method returns an [[Html]] object
using the `utf-8` charset.
value html = renderCompleteHtml(tree);"
shared Html renderCompleteHtml(Document document) => Html {
... | Use the `utf-8` charset for html | Use the `utf-8` charset for html
| Ceylon | apache-2.0 | rohitmohan96/ceylon.markdown |
cf9ad110bc8db4ca74edf3f0b5ed23b89b604247 | test-samples/decLiterals.ceylon | test-samples/decLiterals.ceylon | void decLiterals() {
value clM = `module ceylon.language`;
value clP = `package ceylon.language`;
value stringC = `class String`;
value iterableI = `interface Iterable`;
value aliasA = `alias Alias`;
value givenG = `given Given`;
value nullV = `value null`;
value identityF = `function id... | void decLiterals() {
value clM = `module ceylon.language`;
value clP = `package ceylon.language`;
value stringC = `class String`;
value iterableI = `interface Iterable`;
value aliasA = `alias Alias`;
value givenG = `given Given`;
value nullV = `value null`;
value identityF = `function id... | Add test for backtick-less meta literals | Add test for backtick-less meta literals
Just copied from the existing test, with all backticks removed.
Part of #143.
| Ceylon | apache-2.0 | ceylon/ceylon.formatter |
53e74f8936005c169f297512ca5b97efd1261e3a | test-samples/higherTypes.ceylon | test-samples/higherTypes.ceylon | interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
value anonymousGenericFunction = <T>(T t) => t;
| interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
value anonymousGenericFunction = <T>(T t) => t;
cla... | Add test for parameterized exprs with type params | Add test for parameterized exprs with type params
Another part of #108 that already works without having to change
anything. Looks like ParameterizedException’s default walker order works
for us.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
b61cf79d80014741f4c690c3c858204e88534b68 | source/ceylon/build/engine/console.ceylon | source/ceylon/build/engine/console.ceylon | import ceylon.build.task { Goal, GoalSet }
import ceylon.collection { LinkedList }
"An interactive console."
void console({<Goal|GoalSet>+} goals) {
value exitMessages = LazyMap<Integer, String>({
exitCodes.success->"Success",
exitCodes.dependencyCycleFound->"Dependency Cycle Found",
exitC... | import ceylon.build.task { Goal, GoalSet }
import ceylon.collection { HashMap }
"An interactive console."
void console({<Goal|GoalSet>+} goals) {
value exitMessages = HashMap<Integer, String>({
exitCodes.success->"Success",
exitCodes.dependencyCycleFound->"Dependency Cycle Found",
exitCodes... | Use HashMap instead of LazyMap | Use HashMap instead of LazyMap | Ceylon | apache-2.0 | ceylon/ceylon.build,ceylon/ceylon.build,HenningB/ceylon.build,HenningB/ceylon.build |
9d98db5839164026cd6e14a18d82569186875f41 | src/test/ceylon/conditions/conds.ceylon | src/test/ceylon/conditions/conds.ceylon | import check {...}
shared void test() {
Boolean a = true;
Boolean b = false;
variable value count := 0;
if (a && b) {
fail("WTF?");
} else if (a || b) {
check(a||b, "boolean 1");
count++;
}
String? c = "X";
String? d = null;
if (exists c && exists d) {
... | import check {...}
shared void test() {
Boolean a = true;
Boolean b = false;
variable value count := 0;
if (a && b) {
fail("WTF?");
} else if (a || b) {
check(a||b, "boolean 1");
count++;
}
String? c = "X";
String? d = null;
if (exists c && exists d) {
... | Test condition list with comprehensions | Test condition list with comprehensions
| Ceylon | apache-2.0 | ceylon/ceylon-js,ceylon/ceylon-js,ceylon/ceylon-js |
9fc352d38c2fa3222f146d5e306a6ee01ec81dd6 | test-samples/higherTypes.ceylon | test-samples/higherTypes.ceylon | interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
value anonymousGenericFunction = <T>(T t) => t;
cla... | interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
value namedArgsInvocWithFunctionArgWithTypeParam = f {
function f<T>(T t) {
return t;
}
};
value anonymousGenericFunction = <T>(T t) given T s... | Add test for anon functions with type constraints | Add test for anon functions with type constraints
Part of #108.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
bcf277cb47b4ea00c43e562cf0fa3c8b6b08fffb | test/characters.ceylon | test/characters.ceylon | void characters() {
value c = `a`;
assert(c.lowercase, "lowercase char");
assert(!c.uppercase, "lowercase char");
assert(`A`.uppercase, "uppercase char");
assert(!`A`.lowercase, "uppercase char");
assert(c.uppercased==`A`, "uppercased char");
assert(`A`.lowercased==`a`, "lowercased char");
... | void characters() {
value c = `a`;
assert(c.lowercase, "lowercase char");
assert(!c.uppercase, "lowercase char");
assert(`A`.uppercase, "uppercase char");
assert(!`A`.lowercase, "uppercase char");
assert(c.uppercased==`A`, "uppercased char");
assert(`A`.lowercased==`a`, "lowercased char");
... | Add tests for escaped character literals | Add tests for escaped character literals
| Ceylon | apache-2.0 | jvasileff/ceylon.language,lucaswerkmeister/ceylon.language,unratito/ceylon.language,unratito/ceylon.language,lucaswerkmeister/ceylon.language,jvasileff/ceylon.language,ceylon/ceylon.language,ceylon/ceylon.language |
09c6d95297271f7229acc1bb4d1ab6e31d6b2648 | source/ceylon/net/http/server/internal/ByteUtil.ceylon | source/ceylon/net/http/server/internal/ByteUtil.ceylon | import java.nio {
JByteBuffer=ByteBuffer
}
import java.lang {
ByteArray
}
shared {Byte*} toBytes(JByteBuffer[] jByteBufferArray) =>
jByteBufferArray.flatMap((JByteBuffer element) => collectBytes(element));
{Byte*} collectBytes(JByteBuffer jByteBuffer) {
ByteArray array = ByteArray(jByteBuffer.remain... | import java.nio {
JByteBuffer=ByteBuffer
}
import java.lang {
ByteArray
}
shared {Byte*} toBytes(JByteBuffer[] jByteBufferArray) =>
jByteBufferArray.flatMap((JByteBuffer element) => collectBytes(element));
{Byte*} collectBytes(JByteBuffer jByteBuffer) {
return jByteBuffer.array().iterable;
}
| Remove creation of new array. | Remove creation of new array.
| Ceylon | apache-2.0 | rohitmohan96/ceylon-sdk,jeancharles-roger/ceylon-sdk,matejonnet/ceylon-sdk,jeancharles-roger/ceylon-sdk,ASzc/ceylon-sdk,vietj/ceylon-sdk,vietj/ceylon-sdk,ASzc/ceylon-sdk |
af15207ae0c301bc291c113fabc9711116990219 | samples/no-module/source/noModule.ceylon | samples/no-module/source/noModule.ceylon | /*
* Copyright 2011 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2011 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Fix for the JS backend: made run method shared | Fix for the JS backend: made run method shared
| Ceylon | apache-2.0 | ceylon/ceylon-dist,ceylon/ceylon-dist |
a829d53d78de5bf4ac8e3ed8b121d2cb8d978bde | source/ceylon/promise/Resolver.ceylon | source/ceylon/promise/Resolver.ceylon | "Something that can go through a transition and is meant to
be be fulfilled or rejected."
by("Julien Viet")
shared interface Resolver<in Value> {
"Fulfills the promise with a value or a promise to the
value."
shared formal void fulfill(Value|Promise<Value> val);
"Rejects the promise with a rea... | "Something that can go through a transition and is meant to
be be fulfilled or rejected."
by("Julien Viet")
shared interface Resolver<in Value> {
"Fulfills the promise with a value or a promise to the
value."
shared formal void fulfill(Value|Promise<Value> val);
"Rejects the promise with a rea... | Make run with latest ceylon | Make run with latest ceylon
| Ceylon | apache-2.0 | jeancharles-roger/ceylon-sdk,ASzc/ceylon-sdk,vietj/ceylon-sdk,rohitmohan96/ceylon-sdk,ASzc/ceylon-sdk,jvasileff/ceylon-sdk,jeancharles-roger/ceylon-sdk,vietj/ceylon-sdk,jvasileff/ceylon-sdk,matejonnet/ceylon-sdk |
078e1b180db1a26c0024362f70924dc7da52a52d | test/arrays.ceylon | test/arrays.ceylon | //Array tests
void testArrays() {
assert(!nonempty arrayOfNone(), "arrayOfNone");
value a1 = arrayOfSome({1});
//assert(nonempty a1, "nonempty array");
assert(a1.size==1, "array.size");
assert(a1[0] exists, "array[0]");
assert(!a1.empty, "array.empty");
assert(a1.hash==1, "array.hash");
... | //Array tests
void testArrays() {
assert(!nonempty array(), "arrayOfNone");
value a1 = array(1);
assert(nonempty a1, "nonempty array");
assert(a1.size==1, "array.size");
assert(a1[0] exists, "array[0]");
assert(!a1.empty, "array.empty");
assert(a1.hash==1, "array.hash");
a1.setItem(0,10)... | Complete the array tests (which now pass with flying colors) | Complete the array tests (which now pass with flying colors)
| Ceylon | apache-2.0 | jvasileff/ceylon.language,jvasileff/ceylon.language,lucaswerkmeister/ceylon.language,unratito/ceylon.language,unratito/ceylon.language,ceylon/ceylon.language,ceylon/ceylon.language,lucaswerkmeister/ceylon.language |
1b8d8898478698c83e1a5dfa0adf4e3f41deff5e | source/ceylon/buffer/module.ceylon | source/ceylon/buffer/module.ceylon | by ("Stéphane Épardaud", "Alex Szczuczko")
module ceylon.buffer "1.2.1" {
import ceylon.collection "1.2.1";
native ("jvm") import java.base "7";
native ("jvm") import java.tls "7";
native ("jvm") import ceylon.interop.java "1.2.1";
}
| "This module defines character sets, for encoding and decoding bytes to
strings, as well as buffers of bytes and characters for input/output."
by ("Stéphane Épardaud", "Alex Szczuczko")
module ceylon.buffer "1.2.1" {
import ceylon.collection "1.2.1";
native ("jvm") import java.base "7";
native ("jvm") impo... | Remove java.tls import from ceylon.buffer | Remove java.tls import from ceylon.buffer
| Ceylon | apache-2.0 | matejonnet/ceylon-sdk,rohitmohan96/ceylon-sdk,ASzc/ceylon-sdk,ASzc/ceylon-sdk |
561277a66dfa7b14b7573ce9b0d2f01c7f6cf8d3 | test-samples/ifExpression.ceylon | test-samples/ifExpression.ceylon | Anything ifExpression =
if (true || false)
then 1
else 2;
void ifExpr() {
print(if (true) then 1 else 0);
}
| Anything ifExpression =
if (true || false)
then 1
else 2;
void ifExpr() {
print(if (true) then 1 else 0);
}
| Update if expressions test for changed indentation | Update if expressions test for changed indentation
See 681239e and #104.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
e75466ae2cdebd7ada5d29941a2c48ec30e488d6 | source/ceylon/ast/create/ConstructorDefinition.ceylon | source/ceylon/ast/create/ConstructorDefinition.ceylon | import ceylon.ast.core {
Annotations,
ConstructorDefinition,
Declaration,
ExtendedType,
Parameter,
Parameters,
Statement
}
"""Creates a constructor definition.
Usage example:
TODO"""
shared ConstructorDefinition constructorDefinition(
name,
parameters = Parameters(... | import ceylon.ast.core {
Annotations,
ConstructorDefinition,
Declaration,
ExtendedType,
Parameter,
Parameters,
Statement
}
"""Creates a constructor definition.
Usage example:
constructorDefinition {
name = "rgb";
parameters = {
ValuePar... | Add missing usage example for constructorDefinition | Add missing usage example for constructorDefinition
I must’ve forgotten this in 486bb73 (cc #71).
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
13cc0f4d3b8ad4c9795ca8c5c2aa419ededc56e8 | source/ceylon/time/module.ceylon | source/ceylon/time/module.ceylon | "Date and Time library for Ceylon language SDK.
This library is loosely modeled/inspired by the JodaTime/JSR-310 date/time library.
"
by ("Diego Coronel", "Roland Tepp")
module ceylon.time "1.2.3" {
import ceylon.collection "1.2.3";
}
| "Date and Time library for Ceylon language SDK.
This library is loosely modeled/inspired by the JodaTime/JSR-310 date/time library.
"
by ("Diego Coronel", "Roland Tepp")
module ceylon.time "1.2.3" {
}
| Remove unused dependency on ceylon.collection | Remove unused dependency on ceylon.collection
| Ceylon | apache-2.0 | rohitmohan96/ceylon-sdk,matejonnet/ceylon-sdk |
ee10a1d7571b7a5c5e1d3865ebb632a762a24317 | source/org/otherone/vhostproxy/vertx/module.ceylon | source/org/otherone/vhostproxy/vertx/module.ceylon | native("jvm") module org.otherone.vhostproxy.vertx "4" {
shared import io.vertx.ceylon.core "3.3.2";
//shared import "io.vertx:vertx-lang-ceylon" "3.3.0-SNAPSHOT";
//shared import "io.vertx.lang.ceylon" "3.3.0-SNAPSHOT";
import ceylon.regex "1.2.2";
import ceylon.logging "1.2.2";
//import ceylon... | native("jvm") module org.otherone.vhostproxy.vertx "4" {
shared import io.vertx.ceylon.core "3.3.3";
//shared import "io.vertx:vertx-lang-ceylon" "3.3.0-SNAPSHOT";
//shared import "io.vertx.lang.ceylon" "3.3.0-SNAPSHOT";
import ceylon.regex "1.3.1";
import ceylon.logging "1.3.1";
//import ceylon... | Update to ceylon 1.3.1 + vertx 3.3.3 | Update to ceylon 1.3.1 + vertx 3.3.3
| Ceylon | apache-2.0 | xkr47/vhostproxy4 |
fc4c19a6e485edfff8001b8f9ca0d62f0e11dea1 | source-gen/source_gen/ceylon/ast/run.ceylon | source-gen/source_gen/ceylon/ast/run.ceylon | import ceylon.collection {
MutableList,
ArrayList
}
"Run the module `source_gen.ceylon.ast`.
See [this gist](https://gist.github.com/lucaswerkmeister/a4da0fa5d9d5b14cc3e9)."
shared void run() {
if (exists first = process.arguments.first, first == "--help") {
print("https://gist.github.com/lucaswe... | import ceylon.collection {
MutableList,
ArrayList
}
"Run the module `source_gen.ceylon.ast`.
See [this gist](https://gist.github.com/lucaswerkmeister/a4da0fa5d9d5b14cc3e9)."
shared void run() {
if (exists first = process.arguments.first, first == "--help") {
print("https://gist.github.com/lucaswe... | Fix source-gen bug: doc would be missing line breaks | Fix source-gen bug: doc would be missing line breaks
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
c2f8d8a3db949a892929fb6eca82b99f36588f01 | dbc/source/ceylon/dbc/module.ceylon | dbc/source/ceylon/dbc/module.ceylon | doc "Components for JDBC-based database connectivity."
by "Enrique Zamudio"
license "Apache Software License 2.0"
module ceylon.dbc '0.1' {
import ceylon.math '0.3.2';
}
| doc "This module offers some components for JDBC-based
database connectivity. The main component is simply
called Sql and is meant to be used with a `DataSource`
that has been already been configured. "
by "Enrique Zamudio"
license "Apache Software License 2.0"
module ceylon.dbc '0.1' {
import ceylon... | Update doc and ceylon.math version | Update doc and ceylon.math version
| Ceylon | apache-2.0 | rohitmohan96/ceylon-sdk,jeancharles-roger/ceylon-sdk,vietj/ceylon-sdk,vietj/ceylon-sdk,DiegoCoronel/ceylon-sdk,jvasileff/ceylon-sdk,lucaswerkmeister/ceylon-sdk,jeancharles-roger/ceylon-sdk,jvasileff/ceylon-sdk,lucaswerkmeister/ceylon-sdk,matejonnet/ceylon-sdk,unratito/ceylon-sdk,unratito/ceylon-sdk,ASzc/ceylon-sdk,Dieg... |
6d5f560d9bdbda4e79891f758214ada15ee77e9f | source/ceylon/formatter/module.ceylon | source/ceylon/formatter/module.ceylon | "A formatter for the Ceylon programming language."
by ("Lucas Werkmeister <mail@lucaswerkmeister.de>")
license("http://www.apache.org/licenses/LICENSE-2.0.html")
module ceylon.formatter "1.1.0" {
shared import java.base "7";
shared import com.redhat.ceylon.typechecker "1.1.0";
shared import com.redhat.ceylo... | "A formatter for the Ceylon programming language."
by ("Lucas Werkmeister <mail@lucaswerkmeister.de>")
license ("http://www.apache.org/licenses/LICENSE-2.0.html")
module ceylon.formatter "1.1.0" {
shared import java.base "7";
shared import com.redhat.ceylon.typechecker "1.1.0";
shared import com.redhat.ceyl... | Format source code (ws in license annotation) | Format source code (ws in license annotation)
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
0b8e4c5d2529d490e8e47076751c639338966f85 | source/ceylon/formatter/module.ceylon | source/ceylon/formatter/module.ceylon | "A formatter for the Ceylon programming language."
module ceylon.formatter "1.0.0" {
shared import java.base "7";
shared import com.redhat.ceylon.typechecker "1.0.0";
shared import ceylon.file "1.0.0";
import ceylon.time "1.0.0";
import ceylon.interop.java "1.0.0";
import ceylon.collection "1.0.... | "A formatter for the Ceylon programming language."
module ceylon.formatter "1.0.0" {
shared import java.base "7";
shared import com.redhat.ceylon.typechecker "1.1.0";
shared import ceylon.file "1.0.0";
import ceylon.time "1.0.0";
import ceylon.interop.java "1.0.0";
import ceylon.collection "1.0.... | Update for Ceylon 1.1 (typechecker version) | Update for Ceylon 1.1 (typechecker version)
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
d5dffc7905fcc110132bdff3cad589e3e2225765 | test-source/test/ceylon/ast/api/module.ceylon | test-source/test/ceylon/ast/api/module.ceylon | "Tests for the [[ceylon.ast module|module ceylon.ast]]"
by ("Lucas Werkmeister <mail@lucaswerkmeister.de>")
license("http://www.apache.org/licenses/LICENSE-2.0.html")
module test.ceylon.ast.api "1.1.0" {
shared import ceylon.test "1.1.0";
import ceylon.ast.api "1.1.0";
}
| "Tests for the [[ceylon.ast.api module|module ceylon.ast.api]]"
by ("Lucas Werkmeister <mail@lucaswerkmeister.de>")
license("http://www.apache.org/licenses/LICENSE-2.0.html")
module test.ceylon.ast.api "1.1.0" {
shared import ceylon.test "1.1.0";
import ceylon.ast.api "1.1.0";
}
| Fix ceylon.ast(.api) link in test.ceylon.ast.api doc | Fix ceylon.ast(.api) link in test.ceylon.ast.api doc
Aftermath of 408bc4a.
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
8bd66a0d0ac3dccfa82ee9c32bf187673c0f7e80 | test/metamodel/bug713.ceylon | test/metamodel/bug713.ceylon | @test
shared void bug713() {
value t = `Array<String>.OfSize` == `Array<String>.OfSize`;
}
| @test
shared void bug713() {
value t = `Array<String>.ofSize` == `Array<String>.ofSize`;
}
| Fix a test for Array.ofSize | Fix a test for Array.ofSize
| Ceylon | apache-2.0 | ceylon/ceylon.language,unratito/ceylon.language,ceylon/ceylon.language,unratito/ceylon.language |
e5e926ad918c35fa4594cf57b1f6f44ed0e8662a | source/ceylon/ast/create/Parameters.ceylon | source/ceylon/ast/create/Parameters.ceylon | import ceylon.ast.core {
Parameter,
Parameters
}
"Converts a stream of [[parameters]] to a [[Parameters]] object."
Parameters parameters_internal(Parameters|{Parameter*} parameters) {
if (is Parameters parameters) {
return parameters;
} else {
assert (is {Parameter*} parameters);
... | import ceylon.ast.core {
Parameter,
Parameters
}
"Converts a stream of [[parameters]] to a [[Parameters]] object."
Parameters parameters_internal(Parameters|{Parameter*} parameters) {
if (is Parameters parameters) {
return parameters;
} else {
assert (is {Parameter*} parameters);
... | Add create parameter lists internal function | Add create parameter lists internal function
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
3a07043186a3ec3472e3b536f7098d8b27f5d464 | source/test/ceylon/ast/redhat/ModuleImport.ceylon | source/test/ceylon/ast/redhat/ModuleImport.ceylon | import ceylon.ast.core {
Annotations,
Artifact,
Module,
ModuleImport,
ModuleSpecifier,
Repository,
StringLiteral
}
import ceylon.ast.redhat {
RedHatTransformer,
moduleImportToCeylon,
parseModuleImport
}
import com.redhat.ceylon.compiler.typechecker.tree {
Tree {
JImpo... | import ceylon.ast.core {
Annotations,
Module,
ModuleImport,
ModuleSpecifier,
StringLiteral
}
import ceylon.ast.redhat {
RedHatTransformer,
moduleImportToCeylon,
parseModuleImport
}
import com.redhat.ceylon.compiler.typechecker.tree {
Tree {
JImportModule=ImportModule
}
}
... | Remove unused imports in tests | Remove unused imports in tests
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
b1d0c8be70e65de9d6363300a39447685e2a0067 | source/test/ceylon/ast/create/PositionalArguments.ceylon | source/test/ceylon/ast/create/PositionalArguments.ceylon | import ceylon.ast.core {
thisInstance,
ArgumentList,
PositionalArguments,
SpreadArgument
}
import ceylon.ast.create {
createBaseExpression=baseExpression,
createPositionalArguments=positionalArguments
}
import ceylon.test {
test,
assertEquals
}
test
shared void positionalArgumentsFuncti... | import ceylon.ast.core {
thisInstance,
ArgumentList,
PositionalArguments,
SpreadArgument
}
import ceylon.ast.create {
createBaseExpression=baseExpression,
createPositionalArguments=positionalArguments
}
import ceylon.test {
test,
assertEquals
}
test
shared void positionalArguments() {
... | Fix name of create positional arguments test | Fix name of create positional arguments test
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
6ae874fbbb1684c9387aeb6862cddcb7e048a0dc | src/ceylon/language/module.ceylon | src/ceylon/language/module.ceylon | "The Ceylon language module containing the core definitions
referred to by the [language specification][spec], along
with some basic functionality of use to most programs:
- The [[root package|package ceylon.language]] defines
general-purpose functionality including support for
[[numbers|Numeric]] and [[... | "The Ceylon language module containing the core definitions
referred to by the [language specification][spec], along
with some basic functionality of use to most programs:
- The [[root package|package ceylon.language]] defines
general-purpose functionality including support for
[[numbers|Numeric]] and [[... | Fix doc typo: langauge -> language | Fix doc typo: langauge -> language | Ceylon | apache-2.0 | ceylon/ceylon.language,lucaswerkmeister/ceylon.language,jvasileff/ceylon.language,unratito/ceylon.language,lucaswerkmeister/ceylon.language,unratito/ceylon.language,jvasileff/ceylon.language,ceylon/ceylon.language |
c361370c363f5db5db6bcec1f488c724c372990e | source/ceylon/ast/core/extraInfo.ceylon | source/ceylon/ast/core/extraInfo.ceylon | import ceylon.language.meta.declaration {
AnnotatedDeclaration
}
"A key by which a [[Node]]’s additional information
can be accessed."
shared class Key<Type>(name)
given Type satisfies Object {
"The name of this key. To avoid collisions
with other keys, some use-site ID should be
included, e... | import ceylon.language.meta.declaration {
AnnotatedDeclaration
}
"A key by which a [[Node]]’s additional information
can be accessed."
shared class Key<Type>(name)
given Type satisfies Object {
"The name of this key. To avoid collisions
with other keys, some use-site ID should be
included, e... | Add usage example to ScopedKey documentation | Add usage example to ScopedKey documentation
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
955079954a17d1c13100f212ccbd3f215d805ce4 | test-samples/higherTypes.ceylon | test-samples/higherTypes.ceylon | interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
| interface SecondOrder<Box>
given Box<Value> {
shared formal Box<Float> createBox(Float float);
}
void takesCallableParamWithTypeParam(T f<T>(T t)) {}
| Add test for callable parameters with type parameters | Add test for callable parameters with type parameters
This part of #108 actually already works, since parameters don’t have
their own node type: They’re AttributeDeclarations or
MethodDeclarations, and MethodDeclarations of course already support
type parameters.
| Ceylon | apache-2.0 | HenningB/ceylon.formatter |
feae339ecf52485daed955344cd46c7058f5cd29 | source/ceylon/io/stdio.ceylon | source/ceylon/io/stdio.ceylon | import ceylon.io.impl {
InputStreamAdapter,
OutputStreamAdapter
}
import java.lang {
System {
javaIn=\iin,
javaOut=\iout,
javaErr=err
}
}
"A [[ReadableFileDescriptor]] for the virtual machine's standard input"
ReadableFileDescriptor stdin = InputStreamAdapter(javaIn);
"A [[Wri... | import ceylon.io.impl {
InputStreamAdapter,
OutputStreamAdapter
}
import java.lang {
System {
javaIn=\iin,
javaOut=\iout,
javaErr=err
}
}
"A [[ReadableFileDescriptor]] for the virtual machine's standard input stream."
ReadableFileDescriptor stdin = InputStreamAdapter(javaIn);
... | Fix typo in doc text | Fix typo in doc text
| Ceylon | apache-2.0 | ASzc/ceylon-sdk,rohitmohan96/ceylon-sdk,ASzc/ceylon-sdk,jeancharles-roger/ceylon-sdk,jeancharles-roger/ceylon-sdk,matejonnet/ceylon-sdk |
bcd50d175d7cf50c9d7baa53863aeeb0bdf160f7 | source/ceylon/ast/redhat/Type.ceylon | source/ceylon/ast/redhat/Type.ceylon | import ceylon.ast.api {
Type
}
import com.redhat.ceylon.compiler.typechecker.tree {
Tree {
JGroupedType=GroupedType,
JSimpleType=SimpleType,
JStaticType=StaticType
}
}
import ceylon.ast.redhat {
groupedTypeToCeylon,
createParser,
simpleTypeToCeylon
}
"Converts a RedHat A... | import ceylon.ast.api {
Type
}
import com.redhat.ceylon.compiler.typechecker.tree {
Tree {
JGroupedType=GroupedType,
JIterableType=IterableType,
JOptionalType=OptionalType,
JSequenceType=SequenceType,
JSimpleType=SimpleType,
JStaticType=StaticType,
JTupleT... | Add missing switch type cases to typeToCeylon | Add missing switch type cases to typeToCeylon
| Ceylon | apache-2.0 | ceylon/ceylon.ast |
7977139d2386ec834e5b0ed689fe3ed906a9d075 | file/source/ceylon/file/internal/ConcreteDirectory.ceylon | file/source/ceylon/file/internal/ConcreteDirectory.ceylon | import ceylon.file { ... }
import java.nio.file { JPath=Path,
Files { movePath=move,
newDirectoryStream } }
class ConcreteDirectory(JPath jpath)
extends ConcreteExistingResource(jpath)
satisfies Directory {
shared actual Iterable<Path> child... | import ceylon.file { ... }
import java.nio.file { JPath=Path,
Files { movePath=move,
newDirectoryStream } }
class ConcreteDirectory(JPath jpath)
extends ConcreteExistingResource(jpath)
satisfies Directory {
shared actual Iterable<Path> child... | Fix for sequenced args and iterables | Fix for sequenced args and iterables
| Ceylon | apache-2.0 | DiegoCoronel/ceylon-sdk,ASzc/ceylon-sdk,matejonnet/ceylon-sdk,unratito/ceylon-sdk,DiegoCoronel/ceylon-sdk,vietj/ceylon-sdk,vietj/ceylon-sdk,jvasileff/ceylon-sdk,lucaswerkmeister/ceylon-sdk,jeancharles-roger/ceylon-sdk,jeancharles-roger/ceylon-sdk,rohitmohan96/ceylon-sdk,ASzc/ceylon-sdk,jvasileff/ceylon-sdk,lucaswerkmei... |
38a48766070df0f22931642aa9d6ad2f29f5b4b4 | test-source/test/ceylon/formatter/testDumbLineBreaks.ceylon | test-source/test/ceylon/formatter/testDumbLineBreaks.ceylon | import ceylon.test { test }
import ceylon.formatter { FormattingWriter, maxDesire }
import ceylon.formatter.options { parseLineBreakStrategy, FormattingOptions, LineBreakStrategy }
import ceylon.file { Writer }
test
shared void testDumbLineBreaks() {
object writer satisfies Writer {
shared actual void dest... | Add a test for DumbLineBreaks | Add a test for DumbLineBreaks
| Ceylon | apache-2.0 | HenningB/ceylon.formatter | |
196d2fd6bc962d2ae9d5201a254322dce1c32a1c | test/records/ferguson/whole-array-assign.chpl | test/records/ferguson/whole-array-assign.chpl | use myrecord;
proc myfunction() {
var A:[1..10] R;
for i in 1..10 {
A[i].verify();
A[i].init(x=i);
A[i].verify();
assert(A[i].x == i);
}
}
myfunction();
| use myrecord;
proc myfunction() {
var A:[1..10] R;
for i in 1..10 {
A[i].verify();
A[i].init(x=i);
A[i].verify();
assert(A[i].x == i);
}
var B:[1..10] R;
B = A;
for i in 1..10 {
B[i].verify();
assert(B[i].x == i);
}
}
myfunction();
| Fix whole array assign test | Fix whole array assign test
| Chapel | apache-2.0 | hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel |
9f5280521cb3d5937b18d1a40ea6ba0a80fcd1c2 | test/chpldoc/classes/methodOutsideClassDef.chpl | test/chpldoc/classes/methodOutsideClassDef.chpl | /* This class will declare a method inside itself, but will have a
method declared outside it as well */
class Foo {
proc internalMeth() {
}
}
// We expect these two methods to be printed outside of the class indentation
// level
proc Foo.externalMeth1() {
}
/* This method has a comment attached to it */
pro... | /* This class will declare a method inside itself, but will have a
method declared outside it as well */
class Foo {
proc internalMeth() {
}
}
// We expect these two methods to be printed outside of the class indentation
// level
proc Foo.externalMeth1() {
}
/* This method has a comment attached to it */
pro... | Add record with secondary method to chpldoc/ tests. | Add record with secondary method to chpldoc/ tests.
| Chapel | apache-2.0 | hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chiz... |
28a21f3d8c9e63e001750cc0dd6db79e7a9b49d6 | test/parallel/cobegin/diten/cobeginRace.chpl | test/parallel/cobegin/diten/cobeginRace.chpl | def foo() { }
def bar() { }
var done: single bool;
def timeout(n: uint) {
use Time;
begin { sleep(n); exit(1); }
begin { done; exit(0); }
}
timeout(30); // exit after 30 seconds or when done is set.
for i in 1..100000 {
cobegin {
cobegin { bar(); foo(); }
cobegin { bar(); foo(); }
cobegin { bar... | def foo() { }
def bar() { }
var done: single bool;
def timeout(n: uint) {
use Time;
begin { sleep(n); writeln("Timeout"); exit(1); }
begin { done; exit(0); }
}
timeout(30); // exit after 30 seconds or when done is set.
for i in 1..100000 {
cobegin {
cobegin { bar(); foo(); }
cobegin { bar(); foo();... | Set up svn:ignore on a directory | Set up svn:ignore on a directory
Set the svn:ignore property on this directory like it is on many other test
directories.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@13934 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | hildeth/chapel,hildeth/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chi... |
97cc052ebe26b9fe9b9cb714652deafaa0ffa196 | 005.chpl | 005.chpl | /*
* Smallest multiple
*/
config const rangeMax = 20;
const values: [{1..rangeMax}] int;
forall i in 1..rangeMax {
values[i] = i;
}
proc isMultiple(value: int, numbers: [] int) {
for num in numbers {
if value % num != 0 {
return false;
}
}
return true;
}
// Return least common multiple for l... | /*
* Smallest multiple
*/
config const rangeMax = 20;
const values: [{1..rangeMax}] int = [i in 1..rangeMax] i;
proc isMultiple(value: int, numbers: [] int) {
for num in numbers {
if value % num != 0 {
return false;
}
}
return true;
}
// Return least common multiple for list of ints.
proc lcm(... | Update solution 5 to work with new-and-improved constness checking. | Update solution 5 to work with new-and-improved constness checking.
Previously it was taking advantage of the lack of constness checking on arrays.
| Chapel | bsd-3-clause | thomasvandoren/project-euler |
d3a77d0924a090a02996a0e44cf11ae630cfa812 | test/types/string/sungeun/stringInOn.chpl | test/types/string/sungeun/stringInOn.chpl | config const n = 11;
var s0 = "kiss kiss";
var l0: atomic int;
var l1: atomic int;
writeln(s0);
begin ref(s0) {
l0.waitFor(1);
s0 = "bang bang";
l1.write(1);
}
on Locales[numLocales-1] {
l0.write(1);
l1.waitFor(1);
writeln(s0);
}
| config const n = 11;
var s0 = "kiss kiss";
var l0: atomic int;
var l1: atomic int;
writeln(s0);
begin with (ref s0) {
l0.waitFor(1);
s0 = "bang bang";
l1.write(1);
}
on Locales[numLocales-1] {
l0.write(1);
l1.waitFor(1);
writeln(s0);
}
| Update one last test to the new task intent syntax | Update one last test to the new task intent syntax
| Chapel | apache-2.0 | hildeth/chapel,chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCart... |
3693b3a0cd10895c4363f876e03719b3c07c002a | 012.chpl | 012.chpl | /*
* Highly divisible triangular number
*/
config const minDivisors = 500,
printNumbers = false;
proc main() {
for t in triangleNumbers() {
if printNumbers then
writef("%di: ", t);
var count = 0;
for f in factors(t) {
count += 1;
if printNumbers then
writef("%di, ", f);
... | /*
* Highly divisible triangular number
*/
config const minDivisors = 500,
printNumbers = false;
proc main() {
for t in triangleNumbers() {
if printNumbers then
writef("%n: ", t);
var count = 0;
for f in factors(t) {
count += 1;
if printNumbers then
writef("%n, ", f);
... | Update solution 12 to avoid overflow. | Update solution 12 to avoid overflow.
Previously, it had a loop that went up to max(int). This overflows on the very
final check, since the index will be max(int) and then it will add 1 to it. To
avoid the overflow, iterate to max(int)-1.
| Chapel | bsd-3-clause | thomasvandoren/project-euler |
52aadeafaf99d065b92e6fd48f018333590285e8 | test/extern/bradc/extern_string_test-remote.chpl | test/extern/bradc/extern_string_test-remote.chpl | extern proc return_string_test():string;
extern proc return_string_arg_test(ref string);
writeln("returned string ",return_string_test()); stdout.flush();
var s:string;
on Locales(1) do
return_string_arg_test(s);
writeln("returned string arg ",s);
| extern proc return_string_test():c_string;
extern proc return_string_arg_test(ref c_string);
writeln("returned string ",return_string_test()); stdout.flush();
var s:string;
on Locales(1) do
return_string_arg_test(s);
writeln("returned string arg ",s);
| Change extern prototypes to specify c_string instead of string | Change extern prototypes to specify c_string instead of string
[ok'ed by Brad]
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@23791 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | hildeth/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,hil... |
ac4633d4289fa64ae372153564d165fa96598673 | module/templates/chapel/convert.pych.1d.chpl | module/templates/chapel/convert.pych.1d.chpl | var %(aname)s__defaultRect = pych_to_chpl1D(%(aname)s_pych);
var %(aname)s => _getArray(%(aname)s__defaultRect);
| var %(aname)s__defaultRect = pych_to_chpl1D(%(aname)s_pych);
ref %(aname)s = _getArray(%(aname)s__defaultRect);
| Use a ref instead of an alias operation | Use a ref instead of an alias operation
Aliases are now deprecated. The preferred strategy is to use a ref variable.
| Chapel | apache-2.0 | russel/pychapel,chapel-lang/pychapel,russel/pychapel,chapel-lang/pychapel,russel/pychapel,chapel-lang/pychapel |
989c8db32205514dd735277b7daab46318c466fb | test/functions/deitz/iterators/leader_follower/test_strided_leader1.chpl | test/functions/deitz/iterators/leader_follower/test_strided_leader1.chpl | iter foo(n: int) {
for i in 1..n do
yield i;
}
iter foo(param tag: iterKind, n: int) where tag == iterKind.leader {
cobegin {
on Locales(0) do yield tuple(0..n-1 by 2);
on Locales(1) do yield tuple(1..n-1 by 2);
}
}
iter foo(param tag: iterKind, followThis, n: int) where tag == iterKind.follower {
... | iter foo(n: int) {
for i in 1..n do
yield i;
}
iter foo(param tag: iterKind, n: int) where tag == iterKind.leader {
cobegin {
on Locales(0) do yield tuple(0..n-1 by 2);
on Locales(1) do yield tuple(1..n-1 by 2);
}
}
iter foo(param tag: iterKind, followThis, n: int) where tag == iterKind.follower {
... | Update to new zip() syntax. | Update to new zip() syntax.
This one slipped through the cracks, probably because it is only
tested for gasnet.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@20700 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,hildeth/chapel,chiza... |
f407a750fbf8e24f374b1267c28eebeb6307c169 | test/exits/bradc/child_remains_after_parent.chpl | test/exits/bradc/child_remains_after_parent.chpl | use Time;
config const numIters = 100000;
proc main() {
begin doSomeWork();
// while original task exits
writeln("Original task falling out of main");
}
proc doSomeWork() {
for i in 1..numIters {
write("");
stdout.flush();
}
writeln("done working");
}
| use Time;
config const numIters = 100000;
var s$: sync bool;
proc main() {
begin doSomeWork();
// while original task exits
writeln("Original task falling out of main");
s$ = true;
}
proc doSomeWork() {
s$;
for i in 1..numIters {
write("");
stdout.flush();
}
writeln("done working");... | Fix race condition that was causing valgrind testing non-determinism | Fix race condition that was causing valgrind testing non-determinism
Add synchronization to make sure output is printed in the right order
while preserving the intent of the test (main thread continues on
after a begin).
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@20383 3a8e244f-b0f2-452b-bcba-4c88e055c3ca... | Chapel | apache-2.0 | sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/ch... |
9327914e24bccdafc6c72d2dd58731c5f4a82eb9 | test/studies/filerator/testboth.chpl | test/studies/filerator/testboth.chpl | use Filerator;
for dir in walkdirs("subdir") {
writeln("dir ", dir, " contains:");
for file in glob(dir+"/*") do
writeln(" ", file);
}
| use Filerator;
for dir in walkdirs("subdir", sort=true) {
writeln("dir ", dir, " contains:");
for file in glob(dir+"/*") do
writeln(" ", file);
}
| Fix nondeterministic output from walkdir() by requesting sorted output | Fix nondeterministic output from walkdir() by requesting sorted output
| Chapel | apache-2.0 | chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,Cory... |
735bbb6a907f6651c651090bf0a4d54260124f85 | test/trivial/diten/pi_monte_carlo.chpl | test/trivial/diten/pi_monte_carlo.chpl | // Calcuate pi using a monte carlo simulation
use Random, Time;
config const n = 10000, seed = 314159;
config const verbose: bool = false;
var count:int;
var pi, startTime, totalTime: real;
var rs = RandomStream(seed);
startTime = getCurrentTime(microseconds);
// Find random points on the complex plane in (0..1+i)... | // Calcuate pi using a monte carlo simulation
use Random, Time;
config const n = 10000, seed = 314159;
config const verbose: bool = false;
var count:int;
var pi, startTime, totalTime: real;
var rs = RandomStream(seed);
startTime = getCurrentTime(microseconds);
// Find random points on the complex plane in (0..1+i)... | Change an incorrect bracket syntax forall expression into a for expression for a loop that needs to be serial. | Change an incorrect bracket syntax forall expression into a for expression for a
loop that needs to be serial.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@11785 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,sungeu... |
8587dbf84d319c52bddda3dfa9b7d0cc5e87a970 | test/reductions/waynew/lreductions.chpl | test/reductions/waynew/lreductions.chpl | // Test logical AND and OR reductions
param M = 10;
var D: domain(1) = [1..M];
var B: [D] bool;
forall i in D do {
B(i) = true;
}
writeln( "\nB[D] = ", B);
writeln( "&& reduce B[D] = ", && reduce B);
writeln( "|| reduce B[D] = ", || reduce B);
forall i in D do {
B(i) = false;
}
writeln( "\nB[D] = ", B);
writeln(... | // Test logical AND and OR reductions
param M = 10;
var D: domain(1) = [1..M];
var B: [D] bool;
forall i in D do {
B(i) = true;
}
writeln( "\nB[D] = ", B);
writeln( "&& reduce B[D] = ", && reduce B);
writeln( "|| reduce B[D] = ", || reduce B);
forall i in D do {
B(i) = false;
}
writeln( "\nB[D] = ", B);
writeln(... | Change the last forall loop in this reduction test to make it deterministic. | Change the last forall loop in this reduction test to make it deterministic.
Compute the value of a bool independently at each iteration instead of
depending on the value from the previous iteration.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@16103 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/ch... |
9e6e2013f0a8231697c0b03776038c7a2db6e61d | test/io/ferguson/hash_group.chpl | test/io/ferguson/hash_group.chpl | writef("###\n", 1.1);
writef("###.\n", 1.1);
writef("###..\n", 1.1);
writef("###.##\n", 1.1);
writef("%{###}.##\n", 1.1, 2.2);
writef("%{###.}##\n", 1.1, 2.2);
writef("%{###}%{###}\n", 1.1, 2.2);
writef("%{#.#}#.#%{#.#}\n", 1.1, 2.2, 3.3);
writef("%{#}#%{#}\n", 1.1, 2.2, 3.3);
| writef("###\n", 1.1);
writef("###.\n", 1.1);
writef("###..\n", 1.1);
writef("###.##\n", 1.1);
writef("%{###}.##\n", 1.1, 2.2);
writef("%{###.}##\n", 1.1, 2.2);
writef("%{###}%{###}\n", 1.1, 2.2);
writef("%{#.#}#.#%{#.#}\n", 1.1, 2.2, 3.3);
writef("%{#}#%{#}\n", 1.1, 2.2, 3.3);
writef("%{#.#}.%{#.#}\n", 1.2, 3.4);
| Add test from commit message | Add test from commit message
| Chapel | apache-2.0 | CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel... |
1e3b18493f52b09b9e71a99ca110f75d5dc91f06 | test/modules/diten/quickSort.chpl | test/modules/diten/quickSort.chpl | // A test of the QuickSort function in the Sort module
use Sort;
use Random;
config const size = 4096;
def main() {
var A: [1..size] int;
var rands: [1..size] real;
var randomStream = RandomStream();
// Fill A with random int values in [0, 99999]
randomStream.fillRandom(rands);
[i in 1..size] A(i) = (10... | // A test of the QuickSort function in the Sort module
use Sort;
use Random;
config const size = 4096;
config const seed = 27;
def main() {
var A: [1..size] int;
var rands: [1..size] real;
var randomStream = RandomStream(seed);
// Fill A with random int values in [0, 99999]
randomStream.fillRandom(rands);... | Make the seed to the RandomStream class in my QuickSort test be set to something that causes the "infinite" loop failure instead of the current time. | Make the seed to the RandomStream class in my QuickSort test be set to
something that causes the "infinite" loop failure instead of the current time.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@9702 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,c... |
c846fb1c725fd0e7e9fda79cf0f9d679052b6b81 | test/performance/bharshbarg/arr-forall.chpl | test/performance/bharshbarg/arr-forall.chpl | //
// Measures both array iteration and array access time
//
use Memory, Time, Types;
config const zipIter = false;
config const memFraction = 100;
config const printPerf = false;
type elemType = uint(8);
const totalMem = here.physicalMemory(unit = MemUnits.Bytes);
const n = (totalMem / numBytes(elemType)) / memFra... | //
// Measures both array iteration and array access time
//
use Memory, Time, Types;
config const zipIter = false;
config const memFraction = 100;
config const printPerf = false;
type elemType = uint(8);
const totalMem = here.physicalMemory(unit = MemUnits.Bytes);
const target = (totalMem / numBytes(elemType)) / m... | Set a maximum problem size to avoid timeouts | Set a maximum problem size to avoid timeouts
| Chapel | apache-2.0 | chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/c... |
891ddae57bf58175b24dd51d3ca0fc01d37a2b0e | test/types/sync/sungeun/basicUpdate.chpl | test/types/sync/sungeun/basicUpdate.chpl | config const n = 100;
config const shift = 2;
config type myType = real;
use Random;
var randlist = new RandomStream(314159265);
var T: [1..n] real;
randlist.fillRandom(T);
proc foo(type myType) {
var A = (T*(1<<shift):real):myType;
var x: sync myType = 0:myType;
forall i in 1..n do
x += A[i];
var sum = ... | config const n = 100;
config type myType = real;
var T: [1..n] real;
[i in 1..n] T[i] = i*1.01;
proc foo(type myType) {
var A = T:myType;
var x: sync myType = 0:myType;
forall i in 1..n do
x += A[i];
var sum = + reduce A;
if x.readXX() != sum then
writeln("ERROR: sums do not match for ", typeToStrin... | Change initialization to avoid numerical instability. | Change initialization to avoid numerical instability.
Brad pointed out that I could avoid the numerical instability by using
fixed values. These aren't fixed, but they're multiples of fixed
values, which seems to do the trick.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@19933 3a8e244f-b0f2-452b-bcba-4c88e... | Chapel | apache-2.0 | chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,Co... |
ae9e1323080807340bf932cc15655797842bd731 | test/io/thomasvandoren/lustre/simpleOpen.chpl | test/io/thomasvandoren/lustre/simpleOpen.chpl | /*
* Open a file and confirm its FS type is lustre.
*/
use IO;
var fp = open("SKIPIF", iomode.r),
fileType = fp.fstype();
if fileType == FTYPE_LUSTRE {
writeln("SUCCESS");
} else {
writeln("FAILURE");
}
| /*
* Open a file and confirm its FS type is lustre.
*/
use IO;
const fsTypes: [{0..3}] string = [
"none",
"hdfs",
"UNKNOWN", // lustre is LUSTRE_SUPER_MAGIC (whatever that is)
"curl"
];
var fp = open("SKIPIF", iomode.r),
fileType = fp.fstype();
if fileType == FTYPE_LUSTRE {
writeln("SUCCESS");
} else ... | Update error message to be more helpful. | Update error message to be more helpful.
| Chapel | apache-2.0 | chizarlicious/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,Cory... |
b2ce667a931a11c88e3d37cfdd2c3a6599275087 | test/parallel/cobegin/waynew/while.chpl | test/parallel/cobegin/waynew/while.chpl | var a: sync int;
var b = 0;
cobegin {
{
b = 1;
while (a < 3) {
b = 2;
}
}
a = 1;
a += 1;
a += 1;
}
if (b==2) then {
writeln ("b is good");
} else {
writeln ("b is bad");
}
| var a: sync int;
var b = 0;
cobegin {
{
b = 1;
while (a < 3) {
b = 2;
}
}
{
a = 1;
a = 2;
a = 3;
}
}
if (b==2) then {
writeln ("b is good");
} else {
writeln ("b is bad: ", b);
}
| Fix my spin wait -> sync var change | Fix my spin wait -> sync var change
I realized that it had the possibility to deadlock the way I changed it because
+= causes a read and write.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@13565 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| Chapel | apache-2.0 | sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel... |
947542f4a2cf5e8b5c08a18cf918e3ccca560886 | test/performance/bharshbarg/arr-forall.chpl | test/performance/bharshbarg/arr-forall.chpl | //
// Measures both array iteration and array access time
//
use Memory, Time, Types;
config const zipIter = false;
config const memFraction = 16;
config const printPerf = false;
type elemType = uint(8);
const totalMem = here.physicalMemory(unit = MemUnits.Bytes);
const n = (totalMem / numBytes(elemType)) / memFrac... | //
// Measures both array iteration and array access time
//
use Memory, Time, Types;
config const zipIter = false;
config const memFraction = 100;
config const printPerf = false;
type elemType = uint(8);
const totalMem = here.physicalMemory(unit = MemUnits.Bytes);
const n = (totalMem / numBytes(elemType)) / memFra... | Reduce problem size to avoid timeouts on non-performance configurations | Reduce problem size to avoid timeouts on non-performance configurations
| Chapel | apache-2.0 | chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chiza... |
60cecb97b46a640b4ae52e3776823ad9fbf222f8 | src/test/bin/testme.dcl | src/test/bin/testme.dcl | $!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$!
$! Licensed to the Apache Software Foundation (ASF) under one or more
$! contributor license agreements. See the NOTICE file distributed with
$! this work for additional information regarding copyright ownership.
$! The ASF licenses this file t... | Test script for VMS (eol=CR; not sure if that is necessary; native might be better) | Test script for VMS
(eol=CR; not sure if that is necessary; native might be better)
git-svn-id: a20303ca0449e3ef575223833049c5e6a53b9062@646882 13f79535-47bb-0310-9956-ffa450edef68
| Clean | apache-2.0 | mohanaraosv/commons-exec,apache/commons-exec,sgoeschl/commons-exec,sgoeschl/commons-exec,mohanaraosv/commons-exec,apache/commons-exec | |
fc096358ba955cce849daee7df2bcd15b7fdd04c | src/edge/server.clj | src/edge/server.clj | ;; Copyright © 2016, JUXT LTD.
(ns edge.server
(:require
[aleph.http :as http]
[bidi.vhosts :refer [make-handler vhosts-model]]
[clojure.java.io :as io]
[clojure.tools.logging :refer :all]
[com.stuartsierra.component :refer [Lifecycle using]]
[schema.core :as s]
[yada.yada :refer [yada resource]... | ;; Copyright © 2016, JUXT LTD.
(ns edge.server
(:require
[aleph.http :as http]
[bidi.vhosts :refer [make-handler vhosts-model]]
[clojure.java.io :as io]
[clojure.tools.logging :refer :all]
[com.stuartsierra.component :refer [Lifecycle using]]
[schema.core :as s]
[yada.yada :refer [yada resource]... | Use yada's new stop method | Use yada's new stop method
Thanks to @markmelling for pointing it out to me.
Fixes #6
| Clojure | mit | armincerf/clojure-app-test,juxt/edge,armincerf/clojure-app-test,juxt/edge |
e4c3d2c913e790dc89c90c3e7887de335e76cdbd | src/merkki/core.clj | src/merkki/core.clj | (ns merkki.core)
(defn header
"Given a number and a string, tags the string as that header level and adds a new line"
[n s]
(str (reduce str (take n (repeat "#")))
" "
s
" \n"))
;; Pre-provided curried versions of header for quicker use
(def h1 (partial header 1))
(def h2 (partial header 2... | (ns merkki.core)
(defn break
"Markdown standard allows hard-wrapping by not creating a new paragraph block automatically on new line.
In order to guarantee that a <br>/newline is produced, a line must end in two spaces followed by new line.
See: https://daringfireball.net/projects/markdown/syntax#p"
[s]
(s... | Implement break function for newline/paragraph breaks | Implement break function for newline/paragraph breaks
| Clojure | epl-1.0 | jarcane/merkki |
44314c059a81b9427f1f7136f05449cfc148ea82 | test/unit/puppetlabs/puppetserver/cli/gem_test.clj | test/unit/puppetlabs/puppetserver/cli/gem_test.clj | (ns puppetlabs.puppetserver.cli.gem-test
(:require [clojure.test :refer :all]
[puppetlabs.puppetserver.cli.gem :refer :all]))
(deftest cli-gem-environment-test
(let [fake-config {:jruby-puppet {:gem-home "/fake/path"}}
fake-env {"PATH" "/bin:/usr/bin", "FOO_DEBUG" "1"}]
(testing "The enviro... | (ns puppetlabs.puppetserver.cli.gem-test
(:require [clojure.test :refer :all]
[puppetlabs.puppetserver.cli.gem :refer :all]))
(deftest cli-gem-environment-test
(let [fake-config {:jruby-puppet {:gem-home "/fake/path"}}
fake-env {"PATH" "/bin:/usr/bin", "FOO_DEBUG" "1"}]
(testing "The enviro... | Revert "(SERVER-262) Remove JARS_NO_REQUIRE failing test" | Revert "(SERVER-262) Remove JARS_NO_REQUIRE failing test"
This reverts commit 15acf46176e3b0f1f5ff11579633668542e20c15.
| Clojure | apache-2.0 | cprice404/puppetserver,rlinehan/puppetserver,puppetlabs/puppet-server,waynr/puppetserver,rlinehan/puppetserver,camlow325/puppet-server,kylog/puppet-server,waynr/puppet-server,rlinehan/puppetserver,jeffmccune/puppet-server,rlinehan/puppetserver,shrug/puppet-server,er0ck/puppetserver,dankreek/puppet-server,ahpook/puppet-... |
eb3eb74710b63bc415406bdd84ad6e5c2065f497 | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.8.1.0-alpha4"
:description "Onyx plugin for Datomic"
:url "https://github.com/MichaelDrogalis/onyx-datomic"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/re... | (defproject org.onyxplatform/onyx-datomic "0.8.1.0-SNAPSHOT"
:description "Onyx plugin for Datomic"
:url "https://github.com/MichaelDrogalis/onyx-datomic"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-datomic |
57236efb9876f0215b02dcbe1a06a287204f1e3d | project.clj | project.clj | (defproject de.otto/tesla-httpkit "0.1.5"
:description "httpkit addon for tesla-microservice."
:url "https://github.com/otto-de/tesla-httpkit"
:license {:name "Apache License 2.0"
:url "http://www.apache.org/license/LICENSE-2.0.html"}
:scm {:name "g... | (defproject de.otto/tesla-httpkit "0.1.5"
:description "httpkit addon for tesla-microservice."
:url "https://github.com/otto-de/tesla-httpkit"
:license {:name "Apache License 2.0"
:url "http://www.apache.org/license/LICENSE-2.0.html"}
:scm {:name "g... | Update to latest tesla microservice version | Update to latest tesla microservice version | Clojure | apache-2.0 | otto-de/tesla-httpkit |
ad7469b1793a2662ca444fa9cc52e81dbf28ab9b | project.clj | project.clj | (defproject onyx-app/lein-template "0.11.0.0-alpha1"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.11.0.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
8518a6dfd42a0ebb2b19cf6a9825613db07f196e | project.clj | project.clj | (defproject org.onyxplatform/onyx-sql "0.7.3-SNAPSHOT"
:description "Onyx plugin for JDBC-backed SQL databases"
:url "https://github.com/MichaelDrogalis/onyx-sql"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | (defproject org.onyxplatform/onyx-sql "0.7.3-SNAPSHOT"
:description "Onyx plugin for JDBC-backed SQL databases"
:url "https://github.com/MichaelDrogalis/onyx-sql"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | Update dependency org.onyxplatform/onyx to version 0.7.3-20150828_160954-g51b5cf8. | Update dependency org.onyxplatform/onyx to version 0.7.3-20150828_160954-g51b5cf8.
Automatic commit by lein-traffic-control.
| Clojure | epl-1.0 | onyx-platform/onyx-sql |
2ae073d5906b5f65e7be22b99c9ef92d947e3d16 | project.clj | project.clj | (defproject onyx-app/lein-template "0.12.2.0"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.12.2.1-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
9d317d268b9bd978d12be3819cbe7319ae113dd3 | src/clj/subman/routes.clj | src/clj/subman/routes.clj | (ns subman.routes
(:use [compojure.core :only [defroutes GET]])
(:require [compojure.route :as route]
[subman.models :as models]
[subman.api :as api]
[subman.views :as views]))
(defroutes main-routes
(GET "/" [] (views/index-page))
(GET "/api/search/" {params :params} (api/s... | (ns subman.routes
(:use [compojure.core :only [defroutes GET]])
(:require [compojure.route :as route]
[subman.models :as models]
[subman.api :as api]
[subman.views :as views]))
(defroutes main-routes
(GET "/" [] (views/index-page))
(GET "/search/*" [] (views/index-page))
(... | Fix status on search request | Fix status on search request
| Clojure | epl-1.0 | submanio/subman-parser |
45d09f8412a57f0e54408f5335c30e7ab8acd70f | modern-cljs/src/cljs/modern_cljs/core.cljs | modern-cljs/src/cljs/modern_cljs/core.cljs | ;; create the main project namespace
(ns modern-cljs.core)
;; enable cljs to print to the JavaScript console of the browser
(enable-console-print!)
;; print a friendly greeting to the console
(println "Hello, Modern ClojureScript World!")
| ;; create the main project namespace
(ns modern-cljs.core)
;; enable cljs to print to the JavaScript console of the browser
(enable-console-print!)
;; print a friendly greeting to the console
(println "Hello, New, Modern ClojureScript World!")
| Add task to automatically recompile source. | Add task to automatically recompile source.
Add task to automatically recompile ClojureScript source code.
| Clojure | epl-1.0 | mrwizard82d1/modern-cljs-02 |
465d3a392bd1ca67874970d31f452036e9c0d716 | project.clj | project.clj | (defproject compojure "1.3.4"
:description "A concise routing library for Ring"
:url "https://github.com/weavejester/compojure"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.... | (defproject compojure "1.3.4"
:description "A concise routing library for Ring"
:url "https://github.com/weavejester/compojure"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.... | Update Codox plugin to 0.8.13 | Update Codox plugin to 0.8.13
| Clojure | epl-1.0 | ezy023/compojure,sidcarter/compojure,weavejester/compojure |
28b7abf683cfbf9fda3899cea3b5a61ab33a68ff | project.clj | project.clj | (defproject clj-http "0.3.3-SNAPSHOT"
:description "A Clojure HTTP library wrapping the Apache HttpComponents client."
:url "https://github.com/dakrone/clj-http/"
:repositories {"sona" "http://oss.sonatype.org/content/repositories/snapshots"}
:warn-on-reflection false
:min-lein-version "2.0.0"
:dependencies... | (defproject clj-http "0.3.3-SNAPSHOT"
:description "A Clojure HTTP library wrapping the Apache HttpComponents client."
:url "https://github.com/dakrone/clj-http/"
:repositories {"sona" "http://oss.sonatype.org/content/repositories/snapshots"}
:warn-on-reflection false
:min-lein-version "2.0.0"
:dependencies... | Use the correct 1.4 beta version | Use the correct 1.4 beta version
| Clojure | mit | dakrone/clj-http,lamuria/clj-http,clyfe/clj-http,loganmhb/clj-http,nathanielksmith/clj-http,rplevy/clj-http,nblumoe/clj-http,mtkp/clj-http,uswitch/clj-http,mojotech/clj-http,matthiasn/clj-http,ducky427/clj-http,mdaley/clj-http |
cdf0eedec8e5d73c7d101068deea17075dcf0aea | src/shale/periodic.clj | src/shale/periodic.clj | (ns shale.periodic
(:require [shale.sessions :as sessions])
(:use overtone.at-at))
(def thread-pool (mk-pool))
(defn schedule! []
(every 10 #(sessions/refresh-sessions nil) thread-pool :fixed-delay true))
(defn stop! []
(stop-and-reset-pool! thread-pool))
| (ns shale.periodic
(:require [shale.sessions :as sessions])
(:use overtone.at-at))
(def thread-pool (mk-pool))
(defn schedule! []
(every 200 #(sessions/refresh-sessions nil) thread-pool :fixed-delay true))
(defn stop! []
(stop-and-reset-pool! thread-pool))
| Use a more reasonable refresh delay. | Use a more reasonable refresh delay.
| Clojure | mit | mhluongo/shale,cardforcoin/shale,cardforcoin/shale,mhluongo/shale |
bd70e4d7315729b50cf1d0458bb2ab9946cc8cb0 | exercises/robot-name/src/example.clj | exercises/robot-name/src/example.clj | (ns robot-name)
(def ^:private random (java.util.Random.))
(def ^:private letters (map char (range 65 91)))
(defn- generate-name []
(str (apply str (take 2 (shuffle letters)))
(+ 100 (.nextInt random 899))))
(defn robot []
(atom {:name (generate-name)}))
(defn robot-name [robot]
(:name @robot))
(defn r... | (ns robot-name)
(def ^:private letters (map char (range 65 91)))
(defn- generate-name []
(format "%s%03d" (apply str (repeatedly 2 #(first (shuffle letters))))
(rand-int 1000)))
(defn robot []
(atom {:name (generate-name)}))
(defn robot-name [robot]
(:name @robot))
(defn reset-name [robot]
(swap! ... | Simplify generate-name function for robot-name | Simplify generate-name function for robot-name
This commit updates the generate-name function in robot-name to use
clojure's rand-int function instead of java interop. It also updates the
rand-int call to include all of the range 0-999 and refactors the string
assembly somewhat.
| Clojure | mit | exercism/xclojure,exercism/xclojure,querenker/xclojure,querenker/xclojure |
704c512acb9504a7fc36730e78cb1e3b6c26bfc7 | planck-cljs/project.clj | planck-cljs/project.clj | (defproject planck "0.1.0"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.189"]
[tailrecursion/cljson "1.0.7"]
[com.cognitect/transit-clj "0.8.275"]
[com.cognitect/transit-cljs "0.8.220"]
[malabarba/lazy... | (defproject planck "0.1.0"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.189"]
[org.clojure/tools.reader "1.0.0-alpha3"]
[tailrecursion/cljson "1.0.7"]
[com.cognitect/transit-clj "0.8.275"]
[com.cognite... | Update to latest tools.reader for TRDR-33 (syntax-quote) | Update to latest tools.reader for TRDR-33 (syntax-quote)
| Clojure | epl-1.0 | mfikes/planck,slipset/planck,mfikes/planck,mfikes/planck,mnespor/planck,slipset/planck,mnespor/planck,mnespor/planck,ericstewart/planck,mfikes/planck,mfikes/planck,mfikes/planck,ericstewart/planck,slipset/planck,ericstewart/planck,slipset/planck,slipset/planck |
fcae68860dca43f2a2c7d299457dd98653b14299 | src/dsbdp/DslHelper.clj | src/dsbdp/DslHelper.clj | ;;;
;;; Copyright 2017, Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Java Interop for using the DSL from within Ja... | ;;;
;;; Copyright 2017, Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Java Interop for using the DSL from within Ja... | Allow read-eval for Java interop. | Allow read-eval for Java interop.
| Clojure | epl-1.0 | ruedigergad/dsbdp,ruedigergad/dsbdp,ruedigergad/dsbdp,ruedigergad/dsbdp |
f09b2ed2c0256ba32049a5506fe24e4beaaf93a8 | project.clj | project.clj | (defproject clj-gatling "0.4.2"
:description ""
:url "http://github.com/mhjort/clj-gatling"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[clj-containment-matchers "0.9.1"]
[or... | (defproject clj-gatling "0.4.2"
:description ""
:url "http://github.com/mhjort/clj-gatling"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
... | Move clj-containment-matchers to dev dependency and take latest version of it into use | Move clj-containment-matchers to dev dependency and take latest version of it into use
| Clojure | epl-1.0 | mhjort/clj-gatling |
f89a7f1b755af94b90674329e275e1ab47f162dd | project.clj | project.clj | (defproject funcool/beicon "0.1.0-SNAPSHOT"
:description "A rxjs idiomatic wrapper for ClojureScript"
:url "https://github.com/funcool/beicon"
:license {:name "Public Domain"
:url "http://unlicense.org/"}
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[org.clojure/cl... | (defproject funcool/beicon "0.1.0-SNAPSHOT"
:description "A rxjs idiomatic wrapper for ClojureScript"
:url "https://github.com/funcool/beicon"
:license {:name "Public Domain"
:url "http://unlicense.org/"}
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[org.clojure/cl... | Update clojurescript compiler version to 1.7.145 | Update clojurescript compiler version to 1.7.145
| Clojure | bsd-2-clause | funcool/beicon,funcool/beicon |
a44362fada82edcb4f6b62ffa11535cf767e7c4e | project.clj | project.clj | (defproject onyx-app/lein-template "0.12.0.0-alpha1"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.12.0.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
43f9b2d0c67fa02426b15df7576fa9dbb5df7601 | src/clj/medusa/alert.clj | src/clj/medusa/alert.clj | (ns clj.medusa.alert
(:require [amazonica.aws.simpleemail :as ses]
[amazonica.core :as aws]
[clojure.string :as string]
[clj.medusa.config :as config]
[clj.medusa.db :as db]
[clj.medusa.config :as config]))
(defn send-email [subject body destinations]
(wh... | (ns clj.medusa.alert
(:require [amazonica.aws.simpleemail :as ses]
[amazonica.core :as aws]
[clojure.string :as string]
[clj.medusa.config :as config]
[clj.medusa.db :as db]
[clj.medusa.config :as config]))
(defn send-email [subject body destinations]
(wh... | Fix missing Histograms.json subscriber bug. | Fix missing Histograms.json subscriber bug.
| Clojure | mpl-2.0 | Uberi/medusa,mozilla/medusa,Uberi/medusa,mozilla/medusa |
7292d864623753c72d31276329824cfbcee19d90 | project.clj | project.clj | (defproject iss "0.1.0-SNAPSHOT"
:description "Write inline styles; ship optimized CSS stylesheets."
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.226"]
[org.omcljs/om "0.9.0"]]
:jvm-opts ^:replace ["-Xmx1g" "-server"]
:source-paths ["src" "lib" "... | (defproject iss "0.1.0-SNAPSHOT"
:description "Write inline styles; ship optimized CSS stylesheets."
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.226"]
[org.omcljs/om "0.9.0"]]
:jvm-opts ^:replace ["-Xmx1g" "-server"]
:source-paths ["src" "target... | Remove unused lib dir from source-paths | Remove unused lib dir from source-paths
| Clojure | mit | nick-thompson/iss,nick-thompson/iss,nick-thompson/iss |
46c6d4cf7f2d5d1aba3bd26330dd64374b659cc9 | project.clj | project.clj | (defproject cli4clj "1.6.3"
;(defproject cli4clj "1.6.4-SNAPSHOT"
:description "Create simple interactive CLIs for Clojure applications."
:url "https://github.com/ruedigergad/cli4clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloju... | ;(defproject cli4clj "1.6.3"
(defproject cli4clj "1.6.4-SNAPSHOT"
:description "Create simple interactive CLIs for Clojure applications."
:url "https://github.com/ruedigergad/cli4clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloju... | Revert back to snapshot version. | Revert back to snapshot version.
| Clojure | epl-1.0 | ruedigergad/cli4clj |
ca237acc6fa8baac68db72476da35791fb026e9f | project.clj | project.clj | (defproject funcool/potok "2.1.0"
:description "Reactive streams based state management toolkit for ClojureScript"
:url "https://github.com/funcool/potok"
:license {:name "BSD (2-Clause)"
:url "http://opensource.org/licenses/BSD-2-Clause"}
:dependencies [[org.clojure/clojure "1.8.0" :scope "provided... | (defproject funcool/potok "2.1.0"
:description "Reactive streams based state management toolkit for ClojureScript"
:url "https://github.com/funcool/potok"
:license {:name "BSD (2-Clause)"
:url "http://opensource.org/licenses/BSD-2-Clause"}
:dependencies [[org.clojure/clojure "1.8.0" :scope "provided... | Upgrade clojurescript and beicon dependencies | Upgrade clojurescript and beicon dependencies
| Clojure | bsd-2-clause | funcool/potok |
d386ece1594d9c5491bdd677927a59bfa1de7e32 | project.clj | project.clj | (defproject measure "0.1.2"
:description "Say things about your application with authority, using Coda Hale's Metrics."
:url "https://github.com/KeepSafe/measure"
:scm {:name "git"
:url "https://github.com/KeepSafe/measure"}
:license {:name "Apache License, Version 2.0"
:url "http://www.apac... | (defproject measure "0.1.3-SNAPSHOT"
:description "Say things about your application with authority, using Coda Hale's Metrics."
:url "https://github.com/KeepSafe/measure"
:scm {:name "git"
:url "https://github.com/KeepSafe/measure"}
:license {:name "Apache License, Version 2.0"
:url "http:/... | Prepare for next development iteration | Prepare for next development iteration
| Clojure | apache-2.0 | KeepSafe/measure |
9319520043b37abfe6bed5d32ee74e95042765fa | frontend/src/uxbox/view/ui/viewer/sitemap.cljs | frontend/src/uxbox/view/ui/viewer/sitemap.cljs | ;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
;; Copyright (c) 2016-2019 Andrey Antukh <niwi... | ;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
;; Copyright (c) 2016-2019 Andrey Antukh <niwi... | Fix broken reference to icon. | :bug: Fix broken reference to icon.
| Clojure | mpl-2.0 | uxbox/uxbox,uxbox/uxbox,uxbox/uxbox |
2058f6495bf9430f3930acd383d723ab2bb214c4 | project.clj | project.clj | ;;; Copyright (c) 2013 David Goldfarb. All rights reserved.
;;; Contact info: deg@degel.com
;;;
;;; The use and distribution terms for this software are covered by the Eclipse
;;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can
;;; be found in the file epl-v10.html at the root of this dist... | ;;; Copyright (c) 2013 David Goldfarb. All rights reserved.
;;; Contact info: deg@degel.com
;;;
;;; The use and distribution terms for this software are covered by the Eclipse
;;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can
;;; be found in the file epl-v10.html at the root of this dist... | Use webol 0.1.3: includes FOR/NEXT loops and SAVE/LOAD. | Use webol 0.1.3: includes FOR/NEXT loops and SAVE/LOAD.
| Clojure | epl-1.0 | deg/my-muxx-sites |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.