id
stringlengths
34
124
type
stringclasses
4 values
prompt
stringlengths
0
4.95k
response
stringlengths
21
4.89k
source_lang
stringclasses
3 values
target_lang
stringclasses
2 values
repo
stringclasses
75 values
path
stringlengths
10
88
license
stringclasses
1 value
commit
stringlengths
40
40
stars
int64
431
18.7k
source_url
stringlengths
86
176
line_start
int64
1
214
line_end
int64
3
253
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:completion
completion
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" executables: [ { name: "Crystal" cmd: "crystal" homepage: "http://crystal-lang.o...
docker: { image: "unibeautify/crystal" } } ] options: { Crystal: false } beautify: (text, language, options) -> @exe("crystal").run([ 'tool', 'format', tempFile = @tempFile("temp", text) ], {ignoreReturnCode: true}) .then(=> @readFile(tempFile) ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/crystal.coffee
1
38
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" executables: [ { name: "Crystal" cmd: "crystal" homepage: "http://crystal-lang.o...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
349edae0fd6addbcf42feaf4c86a5037e3bc4ac2
1,503
https://github.com/Glavin001/atom-beautify/blob/349edae0fd6addbcf42feaf4c86a5037e3bc4ac2/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" executables: [ { name: "Crystal" ...
/* Requires https://github.com/jaspervdj/stylish-haskell */ "use strict"; var Beautifier, Crystal; Beautifier = require('./beautifier'); module.exports = Crystal = (function() { class Crystal extends Beautifier { beautify(text, language, options) { var tempFile; return this.exe("crystal").run(['tool...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
349edae0fd6addbcf42feaf4c86a5037e3bc4ac2
1,503
https://github.com/Glavin001/atom-beautify/blob/349edae0fd6addbcf42feaf4c86a5037e3bc4ac2/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/jaspervdj/stylish-haskell */ "use strict"; var Beautifier, Crystal; Beautifier = require('./beautifier'); module.exports = Crystal = (function() { class Crystal extends Beautifier { beautify(text, language, options) { va...
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" executables: [ { name: "Crystal" cmd: "crystal" homepage: "http://crystal-lang.o...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
349edae0fd6addbcf42feaf4c86a5037e3bc4ac2
1,503
https://github.com/Glavin001/atom-beautify/blob/349edae0fd6addbcf42feaf4c86a5037e3bc4ac2/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:completion
completion
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" executables: [ { name: "Crystal" cmd: "crystal" homepage: "http://crystal-lang.o...
parse: (text) -> text.match(/Crystal (\d+\.\d+\.\d+)/)[1] } } ] options: { Crystal: false } beautify: (text, language, options) -> @exe("crystal").run([ 'tool', 'format', tempFile = @tempFile("temp", text) ], {ignoreReturnCode: true}) .then(=> @readFile(...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
349edae0fd6addbcf42feaf4c86a5037e3bc4ac2
1,503
https://github.com/Glavin001/atom-beautify/blob/349edae0fd6addbcf42feaf4c86a5037e3bc4ac2/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" isPreInstalled: false options: { Crystal: false } beautify: (text, language, options) -> ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" isPreInstalled: false options: { Cryst...
/* Requires https://github.com/jaspervdj/stylish-haskell */ "use strict"; var Beautifier, Crystal; Beautifier = require('./beautifier'); module.exports = Crystal = (function() { class Crystal extends Beautifier { beautify(text, language, options) { var tempFile; // Seems that Crystal dosen't have Wi...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/jaspervdj/stylish-haskell */ "use strict"; var Beautifier, Crystal; Beautifier = require('./beautifier'); module.exports = Crystal = (function() { class Crystal extends Beautifier { beautify(text, language, options) { va...
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" isPreInstalled: false options: { Crystal: false } beautify: (text, language, options) -> ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:completion
completion
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" isPreInstalled: false options: { Crystal: false } beautify: (text, language, options) ->
# Seems that Crystal dosen't have Windows support yet. if @isWindows @Promise.reject(@commandNotFoundError( 'crystal' { link: "http://crystal-lang.org" program: "crystal" }) ) else @run("crystal", [ 'tool', 'format', tempFile = @t...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/crystal.coffee
1
35
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" options: { Crystal: false } beautify: (text, language, options) -> # Seems that Crystal ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
7ad325b5ec1d2acd9eb2e4846f239cc0fef84558
1,503
https://github.com/Glavin001/atom-beautify/blob/7ad325b5ec1d2acd9eb2e4846f239cc0fef84558/src/beautifiers/crystal.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" options: { Crystal: false } beautif...
/* Requires https://github.com/jaspervdj/stylish-haskell */ "use strict"; var Beautifier, Crystal; Beautifier = require('./beautifier'); module.exports = Crystal = (function() { class Crystal extends Beautifier { beautify(text, language, options) { var tempFile; // Seems that Crystal dosen't have Wi...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
7ad325b5ec1d2acd9eb2e4846f239cc0fef84558
1,503
https://github.com/Glavin001/atom-beautify/blob/7ad325b5ec1d2acd9eb2e4846f239cc0fef84558/src/beautifiers/crystal.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/jaspervdj/stylish-haskell */ "use strict"; var Beautifier, Crystal; Beautifier = require('./beautifier'); module.exports = Crystal = (function() { class Crystal extends Beautifier { beautify(text, language, options) { va...
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" options: { Crystal: false } beautify: (text, language, options) -> # Seems that Crystal ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
7ad325b5ec1d2acd9eb2e4846f239cc0fef84558
1,503
https://github.com/Glavin001/atom-beautify/blob/7ad325b5ec1d2acd9eb2e4846f239cc0fef84558/src/beautifiers/crystal.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/crystal.coffee:1:completion
completion
### Requires https://github.com/jaspervdj/stylish-haskell ### "use strict" Beautifier = require('./beautifier') module.exports = class Crystal extends Beautifier name: "Crystal" link: "http://crystal-lang.org" options: { Crystal: false } beautify: (text, language, options) -> # Seems that Crystal ...
if @isWindows @Promise.reject(@commandNotFoundError( 'crystal' { link: "http://crystal-lang.org" program: "crystal" }) ) else @run("crystal", [ 'tool', 'format', tempFile = @tempFile("temp", text) ], {ignoreReturnCode: true}) ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/crystal.coffee
MIT
7ad325b5ec1d2acd9eb2e4846f239cc0fef84558
1,503
https://github.com/Glavin001/atom-beautify/blob/7ad325b5ec1d2acd9eb2e4846f239cc0fef84558/src/beautifiers/crystal.coffee
1
34
rs/pushd:lib/pushservices/http.coffee:1:raw_corpus
raw_corpus
http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push: (subscriber, subOptions, payload) -> subscriber...
CoffeeScript
rs/pushd
lib/pushservices/http.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/http.coffee
1
36
rs/pushd:lib/pushservices/http.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push...
var PushServiceHTTP, http, url; http = require('http'); url = require('url'); PushServiceHTTP = class PushServiceHTTP { validateToken(token) { var info, ref; info = url.parse(token); if ((ref = info != null ? info.protocol : void 0) === 'http:' || ref === 'https:') { return token; } } co...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/http.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/http.coffee
1
36
rs/pushd:lib/pushservices/http.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceHTTP, http, url; http = require('http'); url = require('url'); PushServiceHTTP = class PushServiceHTTP { validateToken(token) { var info, ref; info = url.parse(token); if ((ref = info != null ? info.protocol : void 0) === 'http:' || ...
http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push: (subscriber, subOptions, payload) -> subscriber...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/http.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/http.coffee
1
36
rs/pushd:lib/pushservices/http.coffee:1:completion
completion
http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push: (subscriber, subOptions, payload) -> subscriber...
body = event: payload.event.name title: payload.title message: payload.msg data: payload.data req = http.request(options) req.on 'error', (e) => # TODO: allow some error before removing #@logger?.wa...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/http.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/http.coffee
1
36
rs/pushd:lib/pushservices/http.coffee:1:raw_corpus
raw_corpus
http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push: (subscriber, subOptions, payload) -> subscriber...
CoffeeScript
rs/pushd
lib/pushservices/http.coffee
MIT
e5137fbfc3802795ee7b9eb341324901a39c91e8
1,157
https://github.com/rs/pushd/blob/e5137fbfc3802795ee7b9eb341324901a39c91e8/lib/pushservices/http.coffee
1
35
rs/pushd:lib/pushservices/http.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push...
var PushServiceHTTP, http, url; http = require('http'); url = require('url'); PushServiceHTTP = class PushServiceHTTP { validateToken(token) { var info, ref; info = url.parse(token); if ((ref = info != null ? info.protocol : void 0) === 'http:' || ref === 'https:') { return token; } } co...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/http.coffee
MIT
e5137fbfc3802795ee7b9eb341324901a39c91e8
1,157
https://github.com/rs/pushd/blob/e5137fbfc3802795ee7b9eb341324901a39c91e8/lib/pushservices/http.coffee
1
35
rs/pushd:lib/pushservices/http.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceHTTP, http, url; http = require('http'); url = require('url'); PushServiceHTTP = class PushServiceHTTP { validateToken(token) { var info, ref; info = url.parse(token); if ((ref = info != null ? info.protocol : void 0) === 'http:' || ...
http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push: (subscriber, subOptions, payload) -> subscriber...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/http.coffee
MIT
e5137fbfc3802795ee7b9eb341324901a39c91e8
1,157
https://github.com/rs/pushd/blob/e5137fbfc3802795ee7b9eb341324901a39c91e8/lib/pushservices/http.coffee
1
35
rs/pushd:lib/pushservices/http.coffee:1:completion
completion
http = require 'http' url = require 'url' class PushServiceHTTP validateToken: (token) -> info = url.parse(token) if info?.protocol in ['http:', 'https:'] return token constructor: (@conf, @logger, tokenResolver) -> push: (subscriber, subOptions, payload) -> subscriber...
'Connection': 'close' body = event: payload.event.name title: payload.title message: payload.msg data: payload.data req = http.request(options) req.on 'error', (e) => # TODO: allow some error before re...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/http.coffee
MIT
e5137fbfc3802795ee7b9eb341324901a39c91e8
1,157
https://github.com/rs/pushd/blob/e5137fbfc3802795ee7b9eb341324901a39c91e8/lib/pushservices/http.coffee
1
35
gss/engine:spec/cassowary.coffee:1:raw_corpus
raw_corpus
expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Engine it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) ...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Engine it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c...
var expect; expect = chai.expect; describe('Cassowary', function() { var c; c = GSS.Engine.prototype.Solver.prototype.Engine; it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c.SimplexSolver(); x =...
CoffeeScript
JavaScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var expect; expect = chai.expect; describe('Cassowary', function() { var c; c = GSS.Engine.prototype.Solver.prototype.Engine; it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq,...
expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Engine it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) ...
JavaScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:completion
completion
expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Engine it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) ...
expect(z.value).to.equal 2 it 'top left right bottom // z is 2', -> solver = new c.SimplexSolver() x = new c.Variable() y = new c.Variable() z = new c.Variable() eq1 = new c.Equation(x,7) eq2 = new c.Equation(y,5) eq3 = new c.Equation(c.minus(x,y),z) solver.addConstraint(eq1) solve...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:2:raw_corpus
raw_corpus
solver.solve() expect(aw.value).to.equal 102 expect(tw.value).to.equal 100 expect(pad.value).to.equal 2 it 'times expression', -> solver = new c.SimplexSolver() solver.autoSolve = false aw = new c.Variable() tw = new c.Variable() zoom = new c.Variable() solver.addEditVar(zoom) ...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
51
88
gss/engine:spec/cassowary.coffee:2:completion
completion
solver.solve() expect(aw.value).to.equal 102 expect(tw.value).to.equal 100 expect(pad.value).to.equal 2 it 'times expression', -> solver = new c.SimplexSolver() solver.autoSolve = false aw = new c.Variable() tw = new c.Variable() zoom = new c.Variable() solver.addEditVar(zoom) ...
expect(aw.value).to.equal 200 expect(tw.value).to.equal 100 expect(zoom.value).to.equal 2 it 'hierarchy', -> solver = new c.SimplexSolver() solver.autoSolve = false x = new c.Variable() eq1 = new c.Equation(x,100,c.Strength.strong) eq2 = new c.Equation(x,10,c.Strength.medium) eq3 = new...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
51
88
gss/engine:spec/cassowary.coffee:3:raw_corpus
raw_corpus
it 'weights', -> solver = new c.SimplexSolver() solver.autoSolve = false x = new c.Variable() eq1 = new c.Inequality(x, c.GEQ, 100, c.Strength.medium, 0.5) eq2 = new c.Inequality(x, c.GEQ, 10, c.Strength.medium, 0.3) solver.addConstraint(eq1).addConstraint(eq2) solver.solve() expect(x.va...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
90
114
gss/engine:spec/cassowary.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'weights', -> solver = new c.SimplexSolver() solver.autoSolve = false x = new c.Variable() eq1 = new c.Inequality(x, c.GEQ, 100, c.Strength.medium, 0.5) eq2 = new c.Inequality(x, c.GEQ, 10, c.Strength.medium, 0.3) solver.addConstraint(e...
it('weights', function() { var eq1, eq2, solver, x; solver = new c.SimplexSolver(); solver.autoSolve = false; x = new c.Variable(); eq1 = new c.Inequality(x, c.GEQ, 100, c.Strength.medium, 0.5); eq2 = new c.Inequality(x, c.GEQ, 10, c.Strength.medium, 0.3); solver.addConstraint(eq1).addConstraint(eq2); s...
CoffeeScript
JavaScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
90
114
gss/engine:spec/cassowary.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('weights', function() { var eq1, eq2, solver, x; solver = new c.SimplexSolver(); solver.autoSolve = false; x = new c.Variable(); eq1 = new c.Inequality(x, c.GEQ, 100, c.Strength.medium, 0.5); eq2 = new c.Inequality(x, c.GEQ, 10, c.Strength.medium, 0....
it 'weights', -> solver = new c.SimplexSolver() solver.autoSolve = false x = new c.Variable() eq1 = new c.Inequality(x, c.GEQ, 100, c.Strength.medium, 0.5) eq2 = new c.Inequality(x, c.GEQ, 10, c.Strength.medium, 0.3) solver.addConstraint(eq1).addConstraint(eq2) solver.solve() expect(x.va...
JavaScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
90
114
gss/engine:spec/cassowary.coffee:3:completion
completion
it 'weights', -> solver = new c.SimplexSolver() solver.autoSolve = false x = new c.Variable() eq1 = new c.Inequality(x, c.GEQ, 100, c.Strength.medium, 0.5) eq2 = new c.Inequality(x, c.GEQ, 10, c.Strength.medium, 0.3) solver.addConstraint(eq1).addConstraint(eq2) solver.solve() expect(x.va...
solver.addConstraint eq1 solver.solve() expect(x.value).to.equal 100 solver.solve() solver.removeConstraint eq2 expect(x.value).to.equal 100 solver.solve() solver.removeConstraint eq1 solver.solve() expect(x.value).to.equal 0 solver.addConstraint eq2 solver.solve() expect...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/cassowary.coffee
90
114
gss/engine:spec/cassowary.coffee:1:raw_corpus
raw_corpus
expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) ...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
daa2a82301cb1696b74d4bda01f1eefdbc0a3151
2,854
https://github.com/gss/engine/blob/daa2a82301cb1696b74d4bda01f1eefdbc0a3151/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c...
var expect; expect = chai.expect; describe('Cassowary', function() { var c; c = GSS.Engine.prototype.Solver.prototype.Solver; it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c.SimplexSolver(); x =...
CoffeeScript
JavaScript
gss/engine
spec/cassowary.coffee
MIT
daa2a82301cb1696b74d4bda01f1eefdbc0a3151
2,854
https://github.com/gss/engine/blob/daa2a82301cb1696b74d4bda01f1eefdbc0a3151/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var expect; expect = chai.expect; describe('Cassowary', function() { var c; c = GSS.Engine.prototype.Solver.prototype.Solver; it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq,...
expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) ...
JavaScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
daa2a82301cb1696b74d4bda01f1eefdbc0a3151
2,854
https://github.com/gss/engine/blob/daa2a82301cb1696b74d4bda01f1eefdbc0a3151/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:completion
completion
expect = chai.expect describe 'Cassowary', -> c = GSS.Engine.prototype.Solver::Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) ...
expect(z.value).to.equal 2 it 'top left right bottom // z is 2', -> solver = new c.SimplexSolver() x = new c.Variable() y = new c.Variable() z = new c.Variable() eq1 = new c.Equation(x,7) eq2 = new c.Equation(y,5) eq3 = new c.Equation(c.minus(x,y),z) solver.addConstraint(eq1) solve...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
daa2a82301cb1696b74d4bda01f1eefdbc0a3151
2,854
https://github.com/gss/engine/blob/daa2a82301cb1696b74d4bda01f1eefdbc0a3151/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:raw_corpus
raw_corpus
expect = chai.expect describe 'Cassowary', -> c = GSS.prototype.Domains.Linear.prototype.Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstr...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
fd36653f6339f631eef37ed000fd4bc579159a69
2,854
https://github.com/gss/engine/blob/fd36653f6339f631eef37ed000fd4bc579159a69/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript expect = chai.expect describe 'Cassowary', -> c = GSS.prototype.Domains.Linear.prototype.Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) i...
var expect; expect = chai.expect; describe('Cassowary', function() { var c; c = GSS.prototype.Domains.Linear.prototype.Solver; it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c.SimplexSolver(); x ...
CoffeeScript
JavaScript
gss/engine
spec/cassowary.coffee
MIT
fd36653f6339f631eef37ed000fd4bc579159a69
2,854
https://github.com/gss/engine/blob/fd36653f6339f631eef37ed000fd4bc579159a69/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var expect; expect = chai.expect; describe('Cassowary', function() { var c; c = GSS.prototype.Domains.Linear.prototype.Solver; it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq...
expect = chai.expect describe 'Cassowary', -> c = GSS.prototype.Domains.Linear.prototype.Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstr...
JavaScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
fd36653f6339f631eef37ed000fd4bc579159a69
2,854
https://github.com/gss/engine/blob/fd36653f6339f631eef37ed000fd4bc579159a69/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:completion
completion
expect = chai.expect describe 'Cassowary', -> c = GSS.prototype.Domains.Linear.prototype.Solver it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstr...
expect(z.value).to.equal 2 it 'top left right bottom // z is 2', -> solver = new c.SimplexSolver() x = new c.Variable() y = new c.Variable() z = new c.Variable() eq1 = new c.Equation(x,7) eq2 = new c.Equation(y,5) eq3 = new c.Equation(c.minus(x,y),z) solver.addConstraint(eq1) solve...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
fd36653f6339f631eef37ed000fd4bc579159a69
2,854
https://github.com/gss/engine/blob/fd36653f6339f631eef37ed000fd4bc579159a69/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:raw_corpus
raw_corpus
expect = chai.expect c = require 'cassowary' describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) expect(x.value...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf
2,854
https://github.com/gss/engine/blob/d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript expect = chai.expect c = require 'cassowary' describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.G...
var c, expect; expect = chai.expect; c = require('cassowary'); describe('Cassowary', function() { it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c.SimplexSolver(); x = new c.Variable({ value: ...
CoffeeScript
JavaScript
gss/engine
spec/cassowary.coffee
MIT
d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf
2,854
https://github.com/gss/engine/blob/d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var c, expect; expect = chai.expect; c = require('cassowary'); describe('Cassowary', function() { it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c....
expect = chai.expect c = require 'cassowary' describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) expect(x.value...
JavaScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf
2,854
https://github.com/gss/engine/blob/d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:completion
completion
expect = chai.expect c = require 'cassowary' describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) expect(x.value...
expect(z.value).to.equal 2 it 'top left right bottom // z is 2', -> solver = new c.SimplexSolver() x = new c.Variable() y = new c.Variable() z = new c.Variable() eq1 = new c.Equation(x,7) eq2 = new c.Equation(y,5) eq3 = new c.Equation(c.minus(x,y),z) solver.addConstraint(eq1) solve...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf
2,854
https://github.com/gss/engine/blob/d7fd52b1e62e018dfbb84b8fe8f91dd5640705cf/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:raw_corpus
raw_corpus
expect = chai.expect describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) expect(x.value).to.equal 100 it '[x]...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
699a88c41548542beea38760dba2ecf6deecec77
2,854
https://github.com/gss/engine/blob/699a88c41548542beea38760dba2ecf6deecec77/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript expect = chai.expect describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addC...
var expect; expect = chai.expect; describe('Cassowary', function() { it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c.SimplexSolver(); x = new c.Variable({ value: 10 }); ieq = new c.Ine...
CoffeeScript
JavaScript
gss/engine
spec/cassowary.coffee
MIT
699a88c41548542beea38760dba2ecf6deecec77
2,854
https://github.com/gss/engine/blob/699a88c41548542beea38760dba2ecf6deecec77/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var expect; expect = chai.expect; describe('Cassowary', function() { it('should be available', function() { return expect(c).to.be.a('function'); }); it('var >= num', function() { var ieq, solver, x; solver = new c.SimplexSolver(); x = new c...
expect = chai.expect describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) expect(x.value).to.equal 100 it '[x]...
JavaScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
699a88c41548542beea38760dba2ecf6deecec77
2,854
https://github.com/gss/engine/blob/699a88c41548542beea38760dba2ecf6deecec77/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:1:completion
completion
expect = chai.expect describe 'Cassowary', -> it 'should be available', -> expect(c).to.be.a 'function' it 'var >= num', -> solver = new c.SimplexSolver() x = new c.Variable({ value: 10 }) ieq = new c.Inequality(x, c.GEQ, 100) solver.addConstraint(ieq) expect(x.value).to.equal 100 it '[x]...
it 'top left right bottom // z is 2', -> solver = new c.SimplexSolver() x = new c.Variable() y = new c.Variable() z = new c.Variable() eq1 = new c.Equation(x,7) eq2 = new c.Equation(y,5) eq3 = new c.Equation(c.minus(x,y),z) solver.addConstraint(eq1) solver.addConstraint(eq2) solv...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
699a88c41548542beea38760dba2ecf6deecec77
2,854
https://github.com/gss/engine/blob/699a88c41548542beea38760dba2ecf6deecec77/spec/cassowary.coffee
1
50
gss/engine:spec/cassowary.coffee:2:raw_corpus
raw_corpus
expect(aw.value).to.equal 102 expect(tw.value).to.equal 100 expect(pad.value).to.equal 2 it 'times expression', -> solver = new c.SimplexSolver() solver.autoSolve = false aw = new c.Variable() tw = new c.Variable() zoom = new c.Variable() solver.addEditVar(zoom) solver.beginEdit() ...
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
699a88c41548542beea38760dba2ecf6deecec77
2,854
https://github.com/gss/engine/blob/699a88c41548542beea38760dba2ecf6deecec77/spec/cassowary.coffee
51
87
gss/engine:spec/cassowary.coffee:2:completion
completion
expect(aw.value).to.equal 102 expect(tw.value).to.equal 100 expect(pad.value).to.equal 2 it 'times expression', -> solver = new c.SimplexSolver() solver.autoSolve = false aw = new c.Variable() tw = new c.Variable() zoom = new c.Variable() solver.addEditVar(zoom) solver.beginEdit() ...
expect(aw.value).to.equal 200 expect(tw.value).to.equal 100 expect(zoom.value).to.equal 2 it 'hierarchy', -> solver = new c.SimplexSolver() solver.autoSolve = false x = new c.Variable() eq1 = new c.Equation(x,100,c.Strength.strong) eq2 = new c.Equation(x,10,c.Strength.medium) eq3 = new...
CoffeeScript
CoffeeScript
gss/engine
spec/cassowary.coffee
MIT
699a88c41548542beea38760dba2ecf6deecec77
2,854
https://github.com/gss/engine/blob/699a88c41548542beea38760dba2ecf6deecec77/spec/cassowary.coffee
51
87
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_regexps.coffee:1:raw_corpus
raw_corpus
# Regular expression literals. ok 'x'.match(/x/g) ok 'x'.match /x/g ok 'x'.match(/x/) ok 'x'.match /x/ ok 4 / 2 / 1 is 2 y: 4 x: 2 g: 1 ok y / x/g is 2 ok 'http://google.com'.match(/:\/\/goog/) obj: { width: -> 10 height: -> 20 } id: 2 ok (obj.width()/id - obj.height()/id) is -5
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_regexps.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_regexps.coffee
1
23
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_regexps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Regular expression literals. ok 'x'.match(/x/g) ok 'x'.match /x/g ok 'x'.match(/x/) ok 'x'.match /x/ ok 4 / 2 / 1 is 2 y: 4 x: 2 g: 1 ok y / x/g is 2 ok 'http://google.com'.match(/:\/\/goog/) obj: { width: -> 10 height: -> 20 } id: 2 ok (obj.width()/...
// Regular expression literals. ok('x'.match(/x/g)); ok('x'.match(/x/g)); ok('x'.match(/x/)); ok('x'.match(/x/)); ok(4 / 2 / 1 === 2); ({ y: 4, x: 2, g: 1 }); ok(y / x / g === 2); ok('http://google.com'.match(/:\/\/goog/)); ({ obj: { width: function() { return 10; }, height: function()...
CoffeeScript
JavaScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_regexps.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_regexps.coffee
1
23
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_regexps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Regular expression literals. ok('x'.match(/x/g)); ok('x'.match(/x/g)); ok('x'.match(/x/)); ok('x'.match(/x/)); ok(4 / 2 / 1 === 2); ({ y: 4, x: 2, g: 1 }); ok(y / x / g === 2); ok('http://google.com'.match(/:\/\/goog/)); ({ obj: { width: func...
# Regular expression literals. ok 'x'.match(/x/g) ok 'x'.match /x/g ok 'x'.match(/x/) ok 'x'.match /x/ ok 4 / 2 / 1 is 2 y: 4 x: 2 g: 1 ok y / x/g is 2 ok 'http://google.com'.match(/:\/\/goog/) obj: { width: -> 10 height: -> 20 } id: 2 ok (obj.width()/id - obj.height()/id) is -5
JavaScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_regexps.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_regexps.coffee
1
23
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_regexps.coffee:1:completion
completion
# Regular expression literals. ok 'x'.match(/x/g) ok 'x'.match /x/g ok 'x'.match(/x/) ok 'x'.match /x/ ok 4 / 2 / 1 is 2 y: 4 x: 2 g: 1
ok y / x/g is 2 ok 'http://google.com'.match(/:\/\/goog/) obj: { width: -> 10 height: -> 20 } id: 2 ok (obj.width()/id - obj.height()/id) is -5
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_regexps.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_regexps.coffee
1
23
buttercoin/buttercoin:lib/disruptor/sequence_barrier.coffee:1:raw_corpus
raw_corpus
assert = require('assert') module.exports = class SequenceBarrier ### # Create a SequnceBarrier which aggregates a set of upstream dependency counters. # # @param {object or [object]} @deps the upstream dependencies to gate against. ### constructor: (@deps) -> assert @deps isnt undefined and @deps isnt...
CoffeeScript
buttercoin/buttercoin
lib/disruptor/sequence_barrier.coffee
MIT
13c5f2131607d06e2a1286cfcab3718aa6628a8c
663
https://github.com/buttercoin/buttercoin/blob/13c5f2131607d06e2a1286cfcab3718aa6628a8c/lib/disruptor/sequence_barrier.coffee
1
24
buttercoin/buttercoin:lib/disruptor/sequence_barrier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript assert = require('assert') module.exports = class SequenceBarrier ### # Create a SequnceBarrier which aggregates a set of upstream dependency counters. # # @param {object or [object]} @deps the upstream dependencies to gate against. ### constructor: ...
var SequenceBarrier, assert; assert = require('assert'); module.exports = SequenceBarrier = class SequenceBarrier { /* * Create a SequnceBarrier which aggregates a set of upstream dependency counters. * * @param {object or [object]} @deps the upstream dependencies to gate against. */ constructor(deps)...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/disruptor/sequence_barrier.coffee
MIT
13c5f2131607d06e2a1286cfcab3718aa6628a8c
663
https://github.com/buttercoin/buttercoin/blob/13c5f2131607d06e2a1286cfcab3718aa6628a8c/lib/disruptor/sequence_barrier.coffee
1
24
buttercoin/buttercoin:lib/disruptor/sequence_barrier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SequenceBarrier, assert; assert = require('assert'); module.exports = SequenceBarrier = class SequenceBarrier { /* * Create a SequnceBarrier which aggregates a set of upstream dependency counters. * * @param {object or [object]} @deps the upstream ...
assert = require('assert') module.exports = class SequenceBarrier ### # Create a SequnceBarrier which aggregates a set of upstream dependency counters. # # @param {object or [object]} @deps the upstream dependencies to gate against. ### constructor: (@deps) -> assert @deps isnt undefined and @deps isnt...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/disruptor/sequence_barrier.coffee
MIT
13c5f2131607d06e2a1286cfcab3718aa6628a8c
663
https://github.com/buttercoin/buttercoin/blob/13c5f2131607d06e2a1286cfcab3718aa6628a8c/lib/disruptor/sequence_barrier.coffee
1
24
buttercoin/buttercoin:lib/disruptor/sequence_barrier.coffee:1:completion
completion
assert = require('assert') module.exports = class SequenceBarrier ### # Create a SequnceBarrier which aggregates a set of upstream dependency counters. # # @param {object or [object]} @deps the upstream dependencies to gate against. ### constructor: (@deps) -> assert @deps isnt undefined and @deps isnt...
### # Get the lowest sequence number shared by upstream dependencies. # # @return {number} the sequence number to consume against ### sequence: -> seqs = @deps.map (x) -> if x.sequence.constructor is Function x.sequence() else x.sequence Math.min.apply(Math, seqs)
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/disruptor/sequence_barrier.coffee
MIT
13c5f2131607d06e2a1286cfcab3718aa6628a8c
663
https://github.com/buttercoin/buttercoin/blob/13c5f2131607d06e2a1286cfcab3718aa6628a8c/lib/disruptor/sequence_barrier.coffee
1
24
abe33/atom-pigments:lib/pigments-api.coffee:1:raw_corpus
raw_corpus
module.exports = class PigmentsAPI constructor: (@project) -> getProject: -> @project getPalette: -> @project.getPalette() getVariables: -> @project.getVariables() getColorVariables: -> @project.getColorVariables() observeColorBuffers: (callback) -> @project.observeColorBuffers(callback)
CoffeeScript
abe33/atom-pigments
lib/pigments-api.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/pigments-api.coffee
1
13
abe33/atom-pigments:lib/pigments-api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class PigmentsAPI constructor: (@project) -> getProject: -> @project getPalette: -> @project.getPalette() getVariables: -> @project.getVariables() getColorVariables: -> @project.getColorVariables() observeColorBuffers: (callback)...
var PigmentsAPI; module.exports = PigmentsAPI = class PigmentsAPI { constructor(project) { this.project = project; } getProject() { return this.project; } getPalette() { return this.project.getPalette(); } getVariables() { return this.project.getVariables(); } getColorVariables() ...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/pigments-api.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/pigments-api.coffee
1
13
abe33/atom-pigments:lib/pigments-api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PigmentsAPI; module.exports = PigmentsAPI = class PigmentsAPI { constructor(project) { this.project = project; } getProject() { return this.project; } getPalette() { return this.project.getPalette(); } getVariables() { return t...
module.exports = class PigmentsAPI constructor: (@project) -> getProject: -> @project getPalette: -> @project.getPalette() getVariables: -> @project.getVariables() getColorVariables: -> @project.getColorVariables() observeColorBuffers: (callback) -> @project.observeColorBuffers(callback)
JavaScript
CoffeeScript
abe33/atom-pigments
lib/pigments-api.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/pigments-api.coffee
1
13
abe33/atom-pigments:lib/pigments-api.coffee:1:completion
completion
module.exports = class PigmentsAPI constructor: (@project) -> getProject: -> @project
getPalette: -> @project.getPalette() getVariables: -> @project.getVariables() getColorVariables: -> @project.getColorVariables() observeColorBuffers: (callback) -> @project.observeColorBuffers(callback)
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/pigments-api.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/pigments-api.coffee
1
13
mojs/mojs:spec/easing/bezier-easing.coffee:1:raw_corpus
raw_corpus
bezier = mojs.easing.bezier describe 'bezier easing ->', -> it 'should be a function', -> expect(typeof bezier).toBe 'function' it 'should return a function', -> expect(typeof bezier(0, 0, 1, 1)).toBe 'function' describe 'linear curves ->', -> it 'shoud be linear', -> bezier1 = bezier(0,0,1,1);...
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
1
42
mojs/mojs:spec/easing/bezier-easing.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript bezier = mojs.easing.bezier describe 'bezier easing ->', -> it 'should be a function', -> expect(typeof bezier).toBe 'function' it 'should return a function', -> expect(typeof bezier(0, 0, 1, 1)).toBe 'function' describe 'linear curves ->', -> ...
var bezier; bezier = mojs.easing.bezier; describe('bezier easing ->', function() { it('should be a function', function() { return expect(typeof bezier).toBe('function'); }); it('should return a function', function() { return expect(typeof bezier(0, 0, 1, 1)).toBe('function'); }); describe('linear cu...
CoffeeScript
JavaScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
1
42
mojs/mojs:spec/easing/bezier-easing.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var bezier; bezier = mojs.easing.bezier; describe('bezier easing ->', function() { it('should be a function', function() { return expect(typeof bezier).toBe('function'); }); it('should return a function', function() { return expect(typeof bezier(0, ...
bezier = mojs.easing.bezier describe 'bezier easing ->', -> it 'should be a function', -> expect(typeof bezier).toBe 'function' it 'should return a function', -> expect(typeof bezier(0, 0, 1, 1)).toBe 'function' describe 'linear curves ->', -> it 'shoud be linear', -> bezier1 = bezier(0,0,1,1);...
JavaScript
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
1
42
mojs/mojs:spec/easing/bezier-easing.coffee:1:completion
completion
bezier = mojs.easing.bezier describe 'bezier easing ->', -> it 'should be a function', -> expect(typeof bezier).toBe 'function' it 'should return a function', -> expect(typeof bezier(0, 0, 1, 1)).toBe 'function' describe 'linear curves ->', -> it 'shoud be linear', -> bezier1 = bezier(0,0,1,1);...
easing = bezier(a,b,c,d) expect(easing(0)).toBe 0 expect(easing(1)).toBe 1 it 'should approach the projected value of its x=y projected curve', -> samples = 1000 for i in [0...samples] x = i / samples a = Math.random(); b = Math.random() c = Math.random(); d = Mat...
CoffeeScript
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
1
42
mojs/mojs:spec/easing/bezier-easing.coffee:2:raw_corpus
raw_corpus
describe 'symetric curves ->', -> it 'should have a central value y~=0.5 at x=0.5', -> samples = 100 for i in [0..samples] a = Math.random(); b = 2*Math.random()-0.5 c = 1-a; d = 1-b; easing = bezier(a,b,c,d) expect(easing(.5)).toBeCloseTo .5 it 'should be symetrical', -> ...
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
44
93
mojs/mojs:spec/easing/bezier-easing.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'symetric curves ->', -> it 'should have a central value y~=0.5 at x=0.5', -> samples = 100 for i in [0..samples] a = Math.random(); b = 2*Math.random()-0.5 c = 1-a; d = 1-b; easing = bezier(a,b,c,d) expect(easing(...
describe('symetric curves ->', function() { it('should have a central value y~=0.5 at x=0.5', function() { var a, b, c, d, easing, i, j, ref, results, samples; samples = 100; results = []; for (i = j = 0, ref = samples; (0 <= ref ? j <= ref : j >= ref); i = 0 <= ref ? ++j : --j) { a = Math.rando...
CoffeeScript
JavaScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
44
93
mojs/mojs:spec/easing/bezier-easing.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('symetric curves ->', function() { it('should have a central value y~=0.5 at x=0.5', function() { var a, b, c, d, easing, i, j, ref, results, samples; samples = 100; results = []; for (i = j = 0, ref = samples; (0 <= ref ? j <= ref : j >=...
describe 'symetric curves ->', -> it 'should have a central value y~=0.5 at x=0.5', -> samples = 100 for i in [0..samples] a = Math.random(); b = 2*Math.random()-0.5 c = 1-a; d = 1-b; easing = bezier(a,b,c,d) expect(easing(.5)).toBeCloseTo .5 it 'should be symetrical', -> ...
JavaScript
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
44
93
mojs/mojs:spec/easing/bezier-easing.coffee:2:completion
completion
describe 'symetric curves ->', -> it 'should have a central value y~=0.5 at x=0.5', -> samples = 100 for i in [0..samples] a = Math.random(); b = 2*Math.random()-0.5 c = 1-a; d = 1-b; easing = bezier(a,b,c,d) expect(easing(.5)).toBeCloseTo .5 it 'should be symetrical', -> ...
expect(bezier()).toBe undefined expect(mojs.h.error).toHaveBeenCalled() it 'should error if 1 argument', -> spyOn mojs.h, 'error' expect(bezier(1)).toBe undefined expect(mojs.h.error).toHaveBeenCalled() it 'should error if 2 arguments', -> spyOn mojs.h, 'error' expect(bezier(...
CoffeeScript
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
44
93
mojs/mojs:spec/easing/bezier-easing.coffee:3:raw_corpus
raw_corpus
expect(mojs.h.error).toHaveBeenCalled() it 'should error if Infinity argument', -> spyOn mojs.h, 'error' expect(bezier(2, 1, 3, Infinity)).toBe undefined expect(mojs.h.error).toHaveBeenCalled() it 'should error if Infinity argument', -> spyOn mojs.h, 'error' expect(bezier(2, 1, 3, ...
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
94
126
mojs/mojs:spec/easing/bezier-easing.coffee:3:completion
completion
expect(mojs.h.error).toHaveBeenCalled() it 'should error if Infinity argument', -> spyOn mojs.h, 'error' expect(bezier(2, 1, 3, Infinity)).toBe undefined expect(mojs.h.error).toHaveBeenCalled() it 'should error if Infinity argument', -> spyOn mojs.h, 'error' expect(bezier(2, 1, 3, ...
expect(mojs.h.error).toHaveBeenCalled() it 'should error if x < 0 #3', -> spyOn mojs.h, 'error' expect(bezier(-Math.random()-0.000001, 0.5, 0.5, 0.5)).toBe undefined expect(mojs.h.error).toHaveBeenCalled() it 'should error if x > 1', -> spyOn mojs.h, 'error' expect(bezier(0.5, 0.5,...
CoffeeScript
CoffeeScript
mojs/mojs
spec/easing/bezier-easing.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/easing/bezier-easing.coffee
94
126
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:raw_corpus
raw_corpus
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/ParticularElement.coffee
1
24
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and ...
var Dataflow, ParticularElement; Dataflow = require("../Dataflow/Dataflow"); module.exports = ParticularElement = class ParticularElement { constructor(element, spreadEnv) { this.element = element; this.spreadEnv = spreadEnv; if (this.spreadEnv == null) { this.spreadEnv = Dataflow.SpreadEnv.empty;...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/ParticularElement.coffee
1
24
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow, ParticularElement; Dataflow = require("../Dataflow/Dataflow"); module.exports = ParticularElement = class ParticularElement { constructor(element, spreadEnv) { this.element = element; this.spreadEnv = spreadEnv; if (this.spreadEnv == n...
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/ParticularElement.coffee
1
24
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:completion
completion
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
return @element.isAncestorOf(particularElement.element) and @spreadEnv.contains(particularElement.spreadEnv) accumulatedMatrix: -> accumulatedMatrix = @element.accumulatedMatrix.asSpread() accumulatedMatrix = @spreadEnv.resolveWithDefault(accumulatedMatrix) return accumulatedMatrix contextMatrix...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/ParticularElement.coffee
1
24
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:raw_corpus
raw_corpus
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e
1,052
https://github.com/cdglabs/apparatus/blob/d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e/src/Model/ParticularElement.coffee
1
21
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and ...
var Dataflow, ParticularElement; Dataflow = require("../Dataflow/Dataflow"); module.exports = ParticularElement = class ParticularElement { constructor(element, spreadEnv) { this.element = element; this.spreadEnv = spreadEnv; if (this.spreadEnv == null) { this.spreadEnv = Dataflow.SpreadEnv.empty;...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e
1,052
https://github.com/cdglabs/apparatus/blob/d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e/src/Model/ParticularElement.coffee
1
21
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow, ParticularElement; Dataflow = require("../Dataflow/Dataflow"); module.exports = ParticularElement = class ParticularElement { constructor(element, spreadEnv) { this.element = element; this.spreadEnv = spreadEnv; if (this.spreadEnv == n...
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e
1,052
https://github.com/cdglabs/apparatus/blob/d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e/src/Model/ParticularElement.coffee
1
21
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:completion
completion
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv)
isAncestorOf: (particularElement) -> return @element.isAncestorOf(particularElement.element) and @spreadEnv.contains(particularElement.spreadEnv) accumulatedMatrix: -> accumulatedMatrix = @element.accumulatedMatrix.asSpread() accumulatedMatrix = @spreadEnv.resolve(accumulatedMatrix) if accumula...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e
1,052
https://github.com/cdglabs/apparatus/blob/d4e62aef57c71359ce3ccf43ac6f9d9116a8d47e/src/Model/ParticularElement.coffee
1
21
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:raw_corpus
raw_corpus
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Model/ParticularElement.coffee
1
25
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and ...
var Dataflow, ParticularElement; Dataflow = require("../Dataflow/Dataflow"); module.exports = ParticularElement = class ParticularElement { constructor(element1, spreadEnv) { this.element = element1; this.spreadEnv = spreadEnv; if (this.spreadEnv == null) { this.spreadEnv = Dataflow.SpreadEnv.empt...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Model/ParticularElement.coffee
1
25
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow, ParticularElement; Dataflow = require("../Dataflow/Dataflow"); module.exports = ParticularElement = class ParticularElement { constructor(element1, spreadEnv) { this.element = element1; this.spreadEnv = spreadEnv; if (this.spreadEnv ==...
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Model/ParticularElement.coffee
1
25
cdglabs/apparatus:src/Model/ParticularElement.coffee:1:completion
completion
Dataflow = require "../Dataflow/Dataflow" module.exports = class ParticularElement constructor: (@element, @spreadEnv) -> @spreadEnv ?= Dataflow.SpreadEnv.empty isEqualTo: (particularElement) -> return @element == particularElement.element and @spreadEnv.isEqualTo(particularElement.spreadEnv) is...
return @element.isAncestorOf(particularElement.element) and @spreadEnv.contains(particularElement.spreadEnv) accumulatedMatrix: -> accumulatedMatrix = @element.accumulatedMatrix.asSpread() accumulatedMatrix = @spreadEnv.resolve(accumulatedMatrix) if accumulatedMatrix instanceof Dataflow.Spread ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Model/ParticularElement.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Model/ParticularElement.coffee
1
25
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:raw_corpus
raw_corpus
TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted. ### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are not supported in CoffeeScript" WithStatement: (node) -> ...
CoffeeScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted. ### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are no...
var TransformerBase; TransformerBase = require('./base'); module.exports = class extends TransformerBase { /* * Produce warnings when using labels. It may be a JSON string being pasted. */ LabeledStatement(node, parent) { return this.syntaxError(node, "Labeled statements are not supported in CoffeeScrip...
CoffeeScript
JavaScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TransformerBase; TransformerBase = require('./base'); module.exports = class extends TransformerBase { /* * Produce warnings when using labels. It may be a JSON string being pasted. */ LabeledStatement(node, parent) { return this.syntaxError(nod...
TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted. ### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are not supported in CoffeeScript" WithStatement: (node) -> ...
JavaScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:completion
completion
TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted.
### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are not supported in CoffeeScript" WithStatement: (node) -> @syntaxError node, "'with' is not supported in CoffeeScript"
CoffeeScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:raw_corpus
raw_corpus
TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted. ### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are not supported in CoffeeScirpt" WithStatement: (node) -> ...
CoffeeScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
f9cd0cdf01624264b84c7ea03cc41813226fbd70
2,082
https://github.com/js2coffee/js2coffee/blob/f9cd0cdf01624264b84c7ea03cc41813226fbd70/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted. ### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are no...
var TransformerBase; TransformerBase = require('./base'); module.exports = class extends TransformerBase { /* * Produce warnings when using labels. It may be a JSON string being pasted. */ LabeledStatement(node, parent) { return this.syntaxError(node, "Labeled statements are not supported in CoffeeScirp...
CoffeeScript
JavaScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
f9cd0cdf01624264b84c7ea03cc41813226fbd70
2,082
https://github.com/js2coffee/js2coffee/blob/f9cd0cdf01624264b84c7ea03cc41813226fbd70/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TransformerBase; TransformerBase = require('./base'); module.exports = class extends TransformerBase { /* * Produce warnings when using labels. It may be a JSON string being pasted. */ LabeledStatement(node, parent) { return this.syntaxError(nod...
TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted. ### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are not supported in CoffeeScirpt" WithStatement: (node) -> ...
JavaScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
f9cd0cdf01624264b84c7ea03cc41813226fbd70
2,082
https://github.com/js2coffee/js2coffee/blob/f9cd0cdf01624264b84c7ea03cc41813226fbd70/lib/transforms/unsupported.coffee
1
13
js2coffee/js2coffee:lib/transforms/unsupported.coffee:1:completion
completion
TransformerBase = require('./base') module.exports = class extends TransformerBase ### # Produce warnings when using labels. It may be a JSON string being pasted.
### LabeledStatement: (node, parent) -> @syntaxError node, "Labeled statements are not supported in CoffeeScirpt" WithStatement: (node) -> @syntaxError node, "'with' is not supported in CoffeeScript"
CoffeeScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/unsupported.coffee
MIT
f9cd0cdf01624264b84c7ea03cc41813226fbd70
2,082
https://github.com/js2coffee/js2coffee/blob/f9cd0cdf01624264b84c7ea03cc41813226fbd70/lib/transforms/unsupported.coffee
1
13
snd/url-pattern:test/helpers.coffee:1:raw_corpus
raw_corpus
test = require 'tape' { escapeForRegex concatMap stringConcatMap regexGroupCount keysAndValuesToObject } = require '../lib/url-pattern' test 'escapeForRegex', (t) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = escapeForRegex('[-\/\\^$*+?.()|[\]{}]') t.equal expected, a...
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/helpers.coffee
1
39
snd/url-pattern:test/helpers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test = require 'tape' { escapeForRegex concatMap stringConcatMap regexGroupCount keysAndValuesToObject } = require '../lib/url-pattern' test 'escapeForRegex', (t) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = esca...
var concatMap, escapeForRegex, keysAndValuesToObject, regexGroupCount, stringConcatMap, test; test = require('tape'); ({escapeForRegex, concatMap, stringConcatMap, regexGroupCount, keysAndValuesToObject} = require('../lib/url-pattern')); test('escapeForRegex', function(t) { var actual, expected; expected = '\\[\...
CoffeeScript
JavaScript
snd/url-pattern
test/helpers.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/helpers.coffee
1
39
snd/url-pattern:test/helpers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var concatMap, escapeForRegex, keysAndValuesToObject, regexGroupCount, stringConcatMap, test; test = require('tape'); ({escapeForRegex, concatMap, stringConcatMap, regexGroupCount, keysAndValuesToObject} = require('../lib/url-pattern')); test('escapeForRegex', f...
test = require 'tape' { escapeForRegex concatMap stringConcatMap regexGroupCount keysAndValuesToObject } = require '../lib/url-pattern' test 'escapeForRegex', (t) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = escapeForRegex('[-\/\\^$*+?.()|[\]{}]') t.equal expected, a...
JavaScript
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/helpers.coffee
1
39
snd/url-pattern:test/helpers.coffee:1:completion
completion
test = require 'tape' { escapeForRegex concatMap stringConcatMap regexGroupCount keysAndValuesToObject } = require '../lib/url-pattern' test 'escapeForRegex', (t) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = escapeForRegex('[-\/\\^$*+?.()|[\]{}]') t.equal expected, a...
t.equal '\\-', escapeForRegex '-' t.equal '\\-', escapeForRegex '-' t.equal '\\[', escapeForRegex '[' t.equal '\\]', escapeForRegex ']' t.equal '\\(', escapeForRegex '(' t.equal '\\)', escapeForRegex ')' t.end() test 'concatMap', (t) -> t.deepEqual [], concatMap [], -> t.deepEqual [1], concatMap [1], (...
CoffeeScript
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/helpers.coffee
1
39
snd/url-pattern:test/helpers.coffee:2:raw_corpus
raw_corpus
test 'regexGroupCount', (t) -> t.equal 0, regexGroupCount /foo/ t.equal 1, regexGroupCount /(foo)/ t.equal 2, regexGroupCount /((foo))/ t.equal 2, regexGroupCount /(fo(o))/ t.equal 2, regexGroupCount /f(o)(o)/ t.equal 2, regexGroupCount /f(o)o()/ t.equal 5, regexGroupCount /f(o)o()()(())/ t.end() test ...
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/helpers.coffee
41
90
snd/url-pattern:test/helpers.coffee:2:completion
completion
test 'regexGroupCount', (t) -> t.equal 0, regexGroupCount /foo/ t.equal 1, regexGroupCount /(foo)/ t.equal 2, regexGroupCount /((foo))/ t.equal 2, regexGroupCount /(fo(o))/ t.equal 2, regexGroupCount /f(o)(o)/ t.equal 2, regexGroupCount /f(o)o()/ t.equal 5, regexGroupCount /f(o)o()()(())/ t.end() test ...
} ) t.deepEqual( keysAndValuesToObject( ['one', 'two'] [1] ) { one: 1 } ) t.deepEqual( keysAndValuesToObject( ['one', 'two', 'two'] [1, 2, 3] ) { one: 1 two: [2, 3] } ) t.deepEqual( keysAndValuesToObject( ['one', 'two', 'two...
CoffeeScript
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/helpers.coffee
41
90
snd/url-pattern:test/helpers.coffee:1:raw_corpus
raw_corpus
module.exports = 'escapeForRegex': (test) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = escapeForRegex('[-\/\\^$*+?.()|[\]{}]') test.equal expected, actual test.equal escapeForRegex('a$98kdjf(kdj)'), 'a\\$98kdjf\\(kdj\\)' test.equal 'a', escapeForRegex 'a' ...
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/helpers.coffee
9
58
snd/url-pattern:test/helpers.coffee:1:completion
completion
module.exports = 'escapeForRegex': (test) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = escapeForRegex('[-\/\\^$*+?.()|[\]{}]') test.equal expected, actual test.equal escapeForRegex('a$98kdjf(kdj)'), 'a\\$98kdjf\\(kdj\\)' test.equal 'a', escapeForRegex 'a' ...
'stringConcatMap': (test) -> test.equal '', stringConcatMap [], -> test.equal '1', stringConcatMap [1], (x) -> x test.equal '123', stringConcatMap [1, 2, 3], (x) -> x test.equal '1a2a3a', stringConcatMap [1, 2, 3], (x) -> x + 'a' test.done() 'regexGroupCount': (test) -> test.equal 0, regexGro...
CoffeeScript
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/helpers.coffee
9
58
snd/url-pattern:test/helpers.coffee:1:raw_corpus
raw_corpus
{ escapeForRegex concatMap stringConcatMap regexGroupCount } = require '../src/url-pattern' module.exports = 'escapeForRegex': (test) -> expected = '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}\\]' actual = escapeForRegex('[-\/\\^$*+?.()|[\]{}]') test.equal expected, actual test.equ...
CoffeeScript
snd/url-pattern
test/helpers.coffee
MIT
d27970840e003db9a6f9c35700041273bd15a9ee
588
https://github.com/snd/url-pattern/blob/d27970840e003db9a6f9c35700041273bd15a9ee/test/helpers.coffee
1
49