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
meltingice/psd.js:lib/psd/image_exports/png.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Png, RSVP, fs; fs = require('fs'); ({Png} = require('png')); RSVP = require('rsvp'); module.exports = { toPng: function() { if (this.png) { return this.png; } this.png = new Png(new Buffer(this.pixelData), this.width(), this.height(), 'r...
fs = require 'fs' {Png} = require 'png' RSVP = require 'rsvp' module.exports = toPng: -> return @png if @png @png = new Png(new Buffer(@pixelData), @width(), @height(), 'rgba') new RSVP.Promise (resolve, reject) => console.log "Encoding!" @png.encode(resolve) saveAsPng: (output) -> n...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/image_exports/png.coffee
MIT
545c754fa8b304ba319fec938aee75743d9a6c00
2,846
https://github.com/meltingice/psd.js/blob/545c754fa8b304ba319fec938aee75743d9a6c00/lib/psd/image_exports/png.coffee
1
20
meltingice/psd.js:lib/psd/image_exports/png.coffee:1:completion
completion
fs = require 'fs' {Png} = require 'png' RSVP = require 'rsvp' module.exports = toPng: -> return @png if @png @png = new Png(new Buffer(@pixelData), @width(), @height(), 'rgba')
new RSVP.Promise (resolve, reject) => console.log "Encoding!" @png.encode(resolve) saveAsPng: (output) -> new RSVP.Promise (resolve, reject) => @toPng() .then (image) -> console.log "Writing!" fs.writeFile output, image.toString('binary'), 'binary', resolve
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image_exports/png.coffee
MIT
545c754fa8b304ba319fec938aee75743d9a6c00
2,846
https://github.com/meltingice/psd.js/blob/545c754fa8b304ba319fec938aee75743d9a6c00/lib/psd/image_exports/png.coffee
1
20
discolabs/cartjs:src/attributes.coffee:1:raw_corpus
raw_corpus
# Methods related to setting and getting cart attributes. # ------------------------------------------------------- getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultValue setAttribute = (attributeName, value) -> attribute...
CoffeeScript
discolabs/cartjs
src/attributes.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/attributes.coffee
1
26
discolabs/cartjs:src/attributes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Methods related to setting and getting cart attributes. # ------------------------------------------------------- getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultVa...
// Methods related to setting and getting cart attributes. // ------------------------------------------------------- var getAttribute, getAttributes, getNote, setAttribute, setAttributes, setNote; getAttribute = function(attributeName, defaultValue) { if (attributeName in Cart.cart.attributes) { return Cart.car...
CoffeeScript
JavaScript
discolabs/cartjs
src/attributes.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/attributes.coffee
1
26
discolabs/cartjs:src/attributes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Methods related to setting and getting cart attributes. // ------------------------------------------------------- var getAttribute, getAttributes, getNote, setAttribute, setAttributes, setNote; getAttribute = function(attributeName, defaultValue) { if (attri...
# Methods related to setting and getting cart attributes. # ------------------------------------------------------- getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultValue setAttribute = (attributeName, value) -> attribute...
JavaScript
CoffeeScript
discolabs/cartjs
src/attributes.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/attributes.coffee
1
26
discolabs/cartjs:src/attributes.coffee:1:completion
completion
# Methods related to setting and getting cart attributes. # ------------------------------------------------------- getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultValue setAttribute = (attributeName, value) -> attribute...
Cart.cart.attributes setAttributes = (attributes = {}) -> wrappedAttributes = wrapKeys attributes enqueue '/cart/update.js', wrappedAttributes return getNote = () -> Cart.cart.note setNote = (note) -> enqueue '/cart/update.js', { note: note } return
CoffeeScript
CoffeeScript
discolabs/cartjs
src/attributes.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/attributes.coffee
1
26
discolabs/cartjs:src/attributes.coffee:1:raw_corpus
raw_corpus
# Methods related to setting and getting cart attributes. # ------------------------------------------------------- Cart.getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultValue Cart.setAttribute = (attributeName, value) -> ...
CoffeeScript
discolabs/cartjs
src/attributes.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/attributes.coffee
1
17
discolabs/cartjs:src/attributes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Methods related to setting and getting cart attributes. # ------------------------------------------------------- Cart.getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defa...
// Methods related to setting and getting cart attributes. // ------------------------------------------------------- Cart.getAttribute = function(attributeName, defaultValue) { if (attributeName in Cart.cart.attributes) { return Cart.cart.attributes[attributeName]; } else { return defaultValue; } }; Car...
CoffeeScript
JavaScript
discolabs/cartjs
src/attributes.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/attributes.coffee
1
17
discolabs/cartjs:src/attributes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Methods related to setting and getting cart attributes. // ------------------------------------------------------- Cart.getAttribute = function(attributeName, defaultValue) { if (attributeName in Cart.cart.attributes) { return Cart.cart.attributes[attribut...
# Methods related to setting and getting cart attributes. # ------------------------------------------------------- Cart.getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultValue Cart.setAttribute = (attributeName, value) -> ...
JavaScript
CoffeeScript
discolabs/cartjs
src/attributes.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/attributes.coffee
1
17
discolabs/cartjs:src/attributes.coffee:1:completion
completion
# Methods related to setting and getting cart attributes. # ------------------------------------------------------- Cart.getAttribute = (attributeName, defaultValue) -> if attributeName of Cart.cart.attributes then Cart.cart.attributes[attributeName] else defaultValue Cart.setAttribute = (attributeName, value) -> ...
return Cart.getAttributes = () -> Cart.cart.attributes Cart.setAttributes = (attributes = {}) -> for attributeName, value of attributes Cart.setAttribute(attributeName, value) return
CoffeeScript
CoffeeScript
discolabs/cartjs
src/attributes.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/attributes.coffee
1
17
soyjavi/QuoJS:source/quo.output.coffee:1:raw_corpus
raw_corpus
### OUTPUT Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### $$.fn.text = (value) -> if value? @each -> @t...
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### OUTPUT Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### ...
/* OUTPUT Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { /* Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text */ $$.fn.text = function(value) { if (value != null) { ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* OUTPUT Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { /* Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text */ $$.fn....
### OUTPUT Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### $$.fn.text = (value) -> if value? @each -> @t...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:1:completion
completion
### OUTPUT Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### $$.fn.text = (value) -> if value? @each -> @t...
else if @length > 0 then @[0].textContent else "" ### Get/Set html to a given instance element @method html @param {variable} [OPTIONAL] Value of html ### $$.fn.html = (value) -> if value? type = $$.toType(value) @each -> if type is "string" @innerHTML = value ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:2:raw_corpus
raw_corpus
### Remove the set of matched elements to a given instance element @method remove ### $$.fn.remove = -> @each -> @parentNode.removeChild this if @parentNode? ### Remove all child nodes of the set of matched elements to a given instance element @method remove ### $$.fn.empty = -> @each -> @in...
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
43
88
soyjavi/QuoJS:source/quo.output.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Remove the set of matched elements to a given instance element @method remove ### $$.fn.remove = -> @each -> @parentNode.removeChild this if @parentNode? ### Remove all child nodes of the set of matched elements to a given instance element ...
/* Remove the set of matched elements to a given instance element @method remove */ $$.fn.remove = function() { return this.each(function() { if (this.parentNode != null) { return this.parentNode.removeChild(this); } }); }; /* Remove all child nodes of the set of matched elements to a given instance ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
43
88
soyjavi/QuoJS:source/quo.output.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Remove the set of matched elements to a given instance element @method remove */ $$.fn.remove = function() { return this.each(function() { if (this.parentNode != null) { return this.parentNode.removeChild(this); } }); }; /* Remove all child no...
### Remove the set of matched elements to a given instance element @method remove ### $$.fn.remove = -> @each -> @parentNode.removeChild this if @parentNode? ### Remove all child nodes of the set of matched elements to a given instance element @method remove ### $$.fn.empty = -> @each -> @in...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
43
88
soyjavi/QuoJS:source/quo.output.coffee:2:completion
completion
### Remove the set of matched elements to a given instance element @method remove ### $$.fn.remove = -> @each -> @parentNode.removeChild this if @parentNode? ### Remove all child nodes of the set of matched elements to a given instance element @method remove ### $$.fn.empty = -> @each -> @in...
@each -> if type is "string" @insertAdjacentHTML "beforeend", value else if type is "array" value.forEach (slice) => $$(@).append(slice) else @appendChild value ### Prepend a html to a given instance element @method prepend @param {html} Value of html ### $$.fn.p...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
43
88
soyjavi/QuoJS:source/quo.output.coffee:3:raw_corpus
raw_corpus
### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method replaceWith @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.replaceWith = (value) -> type = $$.toType(value) @...
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method replaceWith @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.r...
/* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method replaceWith @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) */ $$.fn.replaceWith = function(value) { var type; type = $$.toType(value); ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method replaceWith @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) */ $$.fn.replaceWith = fun...
### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method replaceWith @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.replaceWith = (value) -> type = $$.toType(value) @...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:3:completion
completion
### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method replaceWith @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.replaceWith = (value) -> type = $$.toType(value)
@each -> if @parentNode if type is "string" @insertAdjacentHTML "beforeBegin", value else if type is "array" value.each (index, value) => @parentNode.insertBefore value, @ else @parentNode.insertBefore value, @ @remove()
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:1:raw_corpus
raw_corpus
### Basic Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### $$.fn.text = (value) -> if value? @each -> @te...
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
9858a58c416f88b8c2f747ab60b6dcf1520c0312
2,055
https://github.com/soyjavi/QuoJS/blob/9858a58c416f88b8c2f747ab60b6dcf1520c0312/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Basic Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### ...
/* Basic Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { /* Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text */ $$.fn.text = function(value) { if (value != null) { ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
9858a58c416f88b8c2f747ab60b6dcf1520c0312
2,055
https://github.com/soyjavi/QuoJS/blob/9858a58c416f88b8c2f747ab60b6dcf1520c0312/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Basic Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { /* Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text */ $$.fn.t...
### Basic Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### $$.fn.text = (value) -> if value? @each -> @te...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
9858a58c416f88b8c2f747ab60b6dcf1520c0312
2,055
https://github.com/soyjavi/QuoJS/blob/9858a58c416f88b8c2f747ab60b6dcf1520c0312/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:1:completion
completion
### Basic Quo Module @namespace Quo @class Output @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> ### Get/Set text to a given instance element @method text @param {string} [OPTIONAL] Value of text ### $$.fn.text = (value) -> if value? @each -> @te...
else if @length > 0 then @[0].textContent else "" ### Get/Set html to a given instance element @method html @param {variable} [OPTIONAL] Value of html ### $$.fn.html = (value) -> if value? type = $$.toType(value) @each -> if type is "string" @innerHTML = value ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
9858a58c416f88b8c2f747ab60b6dcf1520c0312
2,055
https://github.com/soyjavi/QuoJS/blob/9858a58c416f88b8c2f747ab60b6dcf1520c0312/source/quo.output.coffee
1
41
soyjavi/QuoJS:source/quo.output.coffee:3:raw_corpus
raw_corpus
### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method prepend @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.replaceWith = (value) -> type = $$.toType(value) @each...
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
6b4893723078eb2de2e2225e3b5de17eeb7c1051
2,055
https://github.com/soyjavi/QuoJS/blob/6b4893723078eb2de2e2225e3b5de17eeb7c1051/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method prepend @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.repla...
/* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method prepend @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) */ $$.fn.replaceWith = function(value) { var type; type = $$.toType(value); thi...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
6b4893723078eb2de2e2225e3b5de17eeb7c1051
2,055
https://github.com/soyjavi/QuoJS/blob/6b4893723078eb2de2e2225e3b5de17eeb7c1051/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method prepend @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) */ $$.fn.replaceWith = functio...
### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method prepend @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.replaceWith = (value) -> type = $$.toType(value) @each...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
6b4893723078eb2de2e2225e3b5de17eeb7c1051
2,055
https://github.com/soyjavi/QuoJS/blob/6b4893723078eb2de2e2225e3b5de17eeb7c1051/source/quo.output.coffee
91
107
soyjavi/QuoJS:source/quo.output.coffee:3:completion
completion
### Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. @method prepend @param {html} The content to insert (HTML string, DOMelement, array of DOMelements) ### $$.fn.replaceWith = (value) -> type = $$.toType(value)
@each -> if @parentNode if type is "string" @insertAdjacentHTML "beforeBegin", value else if type is "array" value.each (index, value) => @parentNode.insertBefore value, @ else @parentNode.insertBefore value, @ @remove()
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.output.coffee
MIT
6b4893723078eb2de2e2225e3b5de17eeb7c1051
2,055
https://github.com/soyjavi/QuoJS/blob/6b4893723078eb2de2e2225e3b5de17eeb7c1051/source/quo.output.coffee
91
107
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> expect(@el.getCssValue('backgroundCol...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.g...
describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello')...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { retu...
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> expect(@el.getCssValue('backgroundCol...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> expect(@el.getCssValue('backgroundCol...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") WaitForJs 10, -> window.pants != undefined describe "without any further tomfoolery", -> When -> browser.navigate().refresh() Then -> browser.eval("pants()") == ...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.g...
describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello')...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { retu...
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") WaitForJs 10, -> window.pants != undefined describe "without any further tomfoolery", -> When -> browser.navigate().refresh() Then -> browser.eval("pants()") == ...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.g...
describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello')...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { retu...
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") WaitForJs 5, -> window.pants != undefined describe "without any further tomfoolery", -> When -> browser.navigate().refresh() Then -> browser.eval("pants()") == "...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.g...
describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello')...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { Given(function(done) { return lineman.new("hello-world", done); }); afterEach(function() { return lineman.kill(); }); sharedExamplesFor("a hello world", function() { When(function() { retu...
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> Given (done) -> lineman.new("hello-world", done) afterEach -> lineman.kill() sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') ==...
describe "adding a CoffeeScript file", -> Given (done) -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'", done) WaitForJs 5, -> window.pants != undefined describe "without any further tomfoolery", -> When -> browser.navigate().refresh() Then -> browser.eval("p...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/lib/hello-world-spec.coffee
1
44
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssV...
describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'); }); Then(function() { return "Hello, W...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'...
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") Wait(4) When -> browser.navigate().refresh() Then -> browser.eval("pants()") == "yay!" describe "then editing the file", -> Given -> linemanProject.addFile("a...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
8e222e5db0f92850a692e45f1c1f598aede85c12
1,168
https://github.com/linemanjs/lineman/blob/8e222e5db0f92850a692e45f1c1f598aede85c12/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssV...
describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'); }); Then(function() { return "Hello, W...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
8e222e5db0f92850a692e45f1c1f598aede85c12
1,168
https://github.com/linemanjs/lineman/blob/8e222e5db0f92850a692e45f1c1f598aede85c12/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'...
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
8e222e5db0f92850a692e45f1c1f598aede85c12
1,168
https://github.com/linemanjs/lineman/blob/8e222e5db0f92850a692e45f1c1f598aede85c12/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") Wait(2) When -> browser.navigate().refresh() Then -> browser.eval("pants()") == "yay!" describe "then editing the file", -> Given -> linemanProject.addFile("a...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
8e222e5db0f92850a692e45f1c1f598aede85c12
1,168
https://github.com/linemanjs/lineman/blob/8e222e5db0f92850a692e45f1c1f598aede85c12/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
47d0cad03f6a0d008152e75ba57a5e444b63fabe
1,168
https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssV...
describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'); }); Then(function() { return "Hello, W...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
47d0cad03f6a0d008152e75ba57a5e444b63fabe
1,168
https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'...
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
47d0cad03f6a0d008152e75ba57a5e444b63fabe
1,168
https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") Given (done) -> setTimeout(done, 1000) When -> browser.navigate().refresh() Then -> browser.eval("pants()") == "yay!" describe "then editing the file", -> Giv...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
47d0cad03f6a0d008152e75ba57a5e444b63fabe
1,168
https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/spec-e2e/lib/hello-world-spec.coffee
1
37
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
84f5f349bc10e13272118df0a0672d8d05ac27b7
1,168
https://github.com/linemanjs/lineman/blob/84f5f349bc10e13272118df0a0672d8d05ac27b7/test/spec-e2e/lib/hello-world-spec.coffee
1
36
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssV...
describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'); }); Then(function() { return "Hello, W...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
84f5f349bc10e13272118df0a0672d8d05ac27b7
1,168
https://github.com/linemanjs/lineman/blob/84f5f349bc10e13272118df0a0672d8d05ac27b7/test/spec-e2e/lib/hello-world-spec.coffee
1
36
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function() { return this.el = browser.findElementByCssSelector('.hello'...
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
84f5f349bc10e13272118df0a0672d8d05ac27b7
1,168
https://github.com/linemanjs/lineman/blob/84f5f349bc10e13272118df0a0672d8d05ac27b7/test/spec-e2e/lib/hello-world-spec.coffee
1
36
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" == @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" descri...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") Given (done) -> setTimeout(done, 1000) Then -> browser.eval("pants()") == "yay!" describe "then editing the file", -> Given -> linemanProject.addFile("app/js/foo.co...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
84f5f349bc10e13272118df0a0672d8d05ac27b7
1,168
https://github.com/linemanjs/lineman/blob/84f5f349bc10e13272118df0a0672d8d05ac27b7/test/spec-e2e/lib/hello-world-spec.coffee
1
36
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" describe ...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
d364cd7bb81b2f871793684df515c920cb13324f
1,168
https://github.com/linemanjs/lineman/blob/d364cd7bb81b2f871793684df515c920cb13324f/test/spec-e2e/lib/hello-world-spec.coffee
1
36
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When -> @el = browser.findElementByCssSelector('.hello') Then -> "Hello, World!" @el.getText() And -> @el.getCssValue('backgroundColor') == "rgb(239, 239, 239)" describe ...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") Given (done) -> setTimeout(done, 1000) Then -> browser.eval("pants()") == "yay!" describe "then editing the file", -> Given -> linemanProject.addFile("app/js/foo.co...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
d364cd7bb81b2f871793684df515c920cb13324f
1,168
https://github.com/linemanjs/lineman/blob/d364cd7bb81b2f871793684df515c920cb13324f/test/spec-e2e/lib/hello-world-spec.coffee
1
36
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") d...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
221e35f69b4221369ff5e5a124965a2991639339
1,168
https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/spec-e2e/lib/hello-world-spec.coffee
1
49
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, tex...
describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function(done) { return browser.elementByCss(".hello", (err, el) => { this.el = el; return done(); }); ...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
221e35f69b4221369ff5e5a124965a2991639339
1,168
https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/spec-e2e/lib/hello-world-spec.coffee
1
49
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function(done) { return browser.elementByCss(".hello", (err, el) => { ...
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") d...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
221e35f69b4221369ff5e5a124965a2991639339
1,168
https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/spec-e2e/lib/hello-world-spec.coffee
1
49
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") d...
describe "adding a CoffeeScript file", -> Given -> linemanProject.addFile("app/js/foo.coffee", "window.pants = -> 'yay!'") Given (done) -> setTimeout(done, 1000) Then (done) -> browser.eval "pants()", (err, val) -> expect(val).toEqual("yay!") done() describe "then editing the fi...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
221e35f69b4221369ff5e5a124965a2991639339
1,168
https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/spec-e2e/lib/hello-world-spec.coffee
1
49
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") ...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343
1,168
https://github.com/linemanjs/lineman/blob/b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343/test/spec-e2e/lib/hello-world-spec.coffee
1
28
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err...
describe.only("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function(done) { return browser.elementByCss(".hello", (err, el) => { this.el = el; return done(); ...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343
1,168
https://github.com/linemanjs/lineman/blob/b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343/test/spec-e2e/lib/hello-world-spec.coffee
1
28
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe.only("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function(done) { return browser.elementByCss(".hello", (err, el) =...
describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") ...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343
1,168
https://github.com/linemanjs/lineman/blob/b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343/test/spec-e2e/lib/hello-world-spec.coffee
1
28
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") ...
Given (done) -> lineman.build(done) Given (done) -> browser.get("file://#{lineman.projectPath()}/dist/index.html", done) itBehavesLike "a hello world" describe "lineman run", -> beforeAll (done) -> lineman.currentRun = lineman.run(done) Given (done) -> browser.get("http://localhost:8000", done) ...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343
1,168
https://github.com/linemanjs/lineman/blob/b3a3e7d5e5e689d7874c32879d6ed79e9b4dc343/test/spec-e2e/lib/hello-world-spec.coffee
1
28
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") ...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/lib/hello-world-spec.coffee
1
23
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err...
describe.only("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function(done) { return browser.elementByCss(".hello", (err, el) => { this.el = el; return done(); ...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/lib/hello-world-spec.coffee
1
23
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe.only("the hello world project", function() { beforeAll(function(done) { return lineman.new("hello-world", done); }); sharedExamplesFor("a hello world", function() { When(function(done) { return browser.elementByCss(".hello", (err, el) =...
describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") ...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/lib/hello-world-spec.coffee
1
23
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe.only "the hello world project", -> beforeAll (done) -> lineman.new("hello-world", done) sharedExamplesFor "a hello world", -> When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") ...
done() describe "lineman build", -> Given (done) -> lineman.build(done) Given (done) -> browser.get("file://#{lineman.projectPath()}/dist/index.html", done) itBehavesLike "a hello world" describe "lineman run", -> Given (done) -> @child = lineman.run(done) Given (done) -> browser.get("http://l...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/lib/hello-world-spec.coffee
1
23
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:raw_corpus
raw_corpus
describe.only "the hello world project", -> Given (done) -> lineman.new("foo", done) describe "lineman build", -> Given (done) -> lineman.build(done) Given (done) -> browser.get("file://#{lineman.projectPath()}/dist/index.html", done) When (done) -> browser.elementByCss ".hello", (err, el) => @el = el;...
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/lib/hello-world-spec.coffee
1
13
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe.only "the hello world project", -> Given (done) -> lineman.new("foo", done) describe "lineman build", -> Given (done) -> lineman.build(done) Given (done) -> browser.get("file://#{lineman.projectPath()}/dist/index.html", done) When (done)...
describe.only("the hello world project", function() { Given(function(done) { return lineman.new("foo", done); }); return describe("lineman build", function() { Given(function(done) { return lineman.build(done); }); Given(function(done) { return browser.get(`file://${lineman.projectPath...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/lib/hello-world-spec.coffee
1
13
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe.only("the hello world project", function() { Given(function(done) { return lineman.new("foo", done); }); return describe("lineman build", function() { Given(function(done) { return lineman.build(done); }); Given(function(done) {...
describe.only "the hello world project", -> Given (done) -> lineman.new("foo", done) describe "lineman build", -> Given (done) -> lineman.build(done) Given (done) -> browser.get("file://#{lineman.projectPath()}/dist/index.html", done) When (done) -> browser.elementByCss ".hello", (err, el) => @el = el;...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/lib/hello-world-spec.coffee
1
13
linemanjs/lineman:test/spec-e2e/lib/hello-world-spec.coffee:1:completion
completion
describe.only "the hello world project", -> Given (done) -> lineman.new("foo", done) describe "lineman build", -> Given (done) -> lineman.build(done) Given (done) -> browser.get("file://#{lineman.projectPath()}/dist/index.html", done)
When (done) -> browser.elementByCss ".hello", (err, el) => @el = el; done() Then (done) -> browser.text @el, (err, text) -> expect(text).toEqual("Hello, World!") done() And (done) -> browser.getComputedCss @el, "backgroundColor", (err, css) -> expect(css).toEqual("rgb(239, 239, 239)") d...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/lib/hello-world-spec.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/lib/hello-world-spec.coffee
1
13
rs/pushd:tests/performance/pushlistener.coffee:1:raw_corpus
raw_corpus
express = require 'express' class TimeStatistics constructor: -> @count = 0 @sum = 0 @min = Infinity @max = 0 update: (sample) -> @count += 1 @sum += sample @min = Math.min(sample, @min) @max = Math.max(sample, @max) toString: -> avg...
CoffeeScript
rs/pushd
tests/performance/pushlistener.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/tests/performance/pushlistener.coffee
1
50
rs/pushd:tests/performance/pushlistener.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' class TimeStatistics constructor: -> @count = 0 @sum = 0 @min = Infinity @max = 0 update: (sample) -> @count += 1 @sum += sample @min = Math.min(sample, @min) @m...
var TimeStatistics, app, express, timesPerEvent; express = require('express'); TimeStatistics = class TimeStatistics { constructor() { this.count = 0; this.sum = 0; this.min = 2e308; this.max = 0; } update(sample) { this.count += 1; this.sum += sample; this.min = Math.min(sample, th...
CoffeeScript
JavaScript
rs/pushd
tests/performance/pushlistener.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/tests/performance/pushlistener.coffee
1
50
rs/pushd:tests/performance/pushlistener.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TimeStatistics, app, express, timesPerEvent; express = require('express'); TimeStatistics = class TimeStatistics { constructor() { this.count = 0; this.sum = 0; this.min = 2e308; this.max = 0; } update(sample) { this.count += 1; ...
express = require 'express' class TimeStatistics constructor: -> @count = 0 @sum = 0 @min = Infinity @max = 0 update: (sample) -> @count += 1 @sum += sample @min = Math.min(sample, @min) @max = Math.max(sample, @max) toString: -> avg...
JavaScript
CoffeeScript
rs/pushd
tests/performance/pushlistener.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/tests/performance/pushlistener.coffee
1
50
rs/pushd:tests/performance/pushlistener.coffee:1:completion
completion
express = require 'express' class TimeStatistics constructor: -> @count = 0 @sum = 0 @min = Infinity @max = 0 update: (sample) -> @count += 1 @sum += sample @min = Math.min(sample, @min) @max = Math.max(sample, @max) toString: -> avg...
#console.log 'Received message' #console.log req.body receivedTime = Date.now()/1000.0 if not req.body.message?.default? console.log 'No default message!' res.send 400 body = JSON.parse req.body.message.default if not body?.timestamp? console.log 'No timestamp in the body!...
CoffeeScript
CoffeeScript
rs/pushd
tests/performance/pushlistener.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/tests/performance/pushlistener.coffee
1
50
abe33/atom-pigments:lib/renderers/square-dot.coffee:1:raw_corpus
raw_corpus
DotRenderer = require './dot' module.exports = class SquareDotRenderer extends DotRenderer render: (colorMarker) -> properties = super properties.class += ' square' properties
CoffeeScript
abe33/atom-pigments
lib/renderers/square-dot.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/renderers/square-dot.coffee
1
8
abe33/atom-pigments:lib/renderers/square-dot.coffee:1:completion
completion
DotRenderer = require './dot' module.exports = class SquareDotRenderer extends DotRenderer
render: (colorMarker) -> properties = super properties.class += ' square' properties
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/renderers/square-dot.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/renderers/square-dot.coffee
1
8
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'inte-item' mixins: [PureRenderMixin] propTypes: data: T.instanceOf(Immutable.Map) onClick: T.func.isRequired showRobot: T.bool getDefaultProps: -> showRobot: false onClick: -> @props.onClick @props.data renderNotifications: (it) -...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
17
66
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'inte-item' mixins: [PureRenderMixin] propTypes: data: T.instanceOf(Immutable.Map) onClick: T.func.isRequired showRobot: T.bool getDefaultProps: -> showRobot: false onClick: -> ...
module.exports = React.createClass({ displayName: 'inte-item', mixins: [PureRenderMixin], propTypes: { data: T.instanceOf(Immutable.Map), onClick: T.func.isRequired, showRobot: T.bool }, getDefaultProps: function() { return { showRobot: false }; }, onClick: function() { retur...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
17
66
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'inte-item', mixins: [PureRenderMixin], propTypes: { data: T.instanceOf(Immutable.Map), onClick: T.func.isRequired, showRobot: T.bool }, getDefaultProps: function() { return { showRob...
module.exports = React.createClass displayName: 'inte-item' mixins: [PureRenderMixin] propTypes: data: T.instanceOf(Immutable.Map) onClick: T.func.isRequired showRobot: T.bool getDefaultProps: -> showRobot: false onClick: -> @props.onClick @props.data renderNotifications: (it) -...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
17
66
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:1:completion
completion
module.exports = React.createClass displayName: 'inte-item' mixins: [PureRenderMixin] propTypes: data: T.instanceOf(Immutable.Map) onClick: T.func.isRequired showRobot: T.bool getDefaultProps: -> showRobot: false onClick: -> @props.onClick @props.data renderNotifications: (it) -...
# github if it.commit_comment? then span key: 'commit_comment', l('info-commit_comment') if it.create? then span key: 'create', l('info-create') if it.delete? then span key: 'delete', l('info-delete') if it.fork? then span key: 'fork', l('i...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
17
66
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:2:raw_corpus
raw_corpus
div className: 'title line', div className: 'title-text', @props.data.get('title') or @props.data.get('showname') or @props.data.get('category') if @props.showRobot div className: 'robot-tip', span className: 'robot-guide', lang.getText('robot-id'), ":" ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
67
91
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript div className: 'title line', div className: 'title-text', @props.data.get('title') or @props.data.get('showname') or @props.data.get('category') if @props.showRobot div className: 'robot-tip', span classNa...
div({ className: 'title line' }, div({ className: 'title-text' }, this.props.data.get('title') || this.props.data.get('showname') || this.props.data.get('category')), this.props.showRobot ? div({ className: 'robot-tip' }, span({ className: 'robot-guide' }, lang.getText('robot-id'), ":"), code({ className: 'ro...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
67
91
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript div({ className: 'title line' }, div({ className: 'title-text' }, this.props.data.get('title') || this.props.data.get('showname') || this.props.data.get('category')), this.props.showRobot ? div({ className: 'robot-tip' }, span({ className: 'robot-guide' }, ...
div className: 'title line', div className: 'title-text', @props.data.get('title') or @props.data.get('showname') or @props.data.get('category') if @props.showRobot div className: 'robot-tip', span className: 'robot-guide', lang.getText('robot-id'), ":" ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
67
91
jianliaoim/talk-os:talk-web/client/app/inte-item.coffee:2:completion
completion
div className: 'title line', div className: 'title-text', @props.data.get('title') or @props.data.get('showname') or @props.data.get('category') if @props.showRobot div className: 'robot-tip', span className: 'robot-guide', lang.getText('robot-id'), ":" ...
@props.data.get('errorInfo') else if @props.data.get('description') div className: 'description muted', @props.data.get('description') else if @props.data.get('notifications')? @renderNotifications @props.data.get('notifications') else div className: 'description mu...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-item.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-item.coffee
67
91
oozcitak/xmlbuilder-js:test/issues/190.coffee:1:raw_corpus
raw_corpus
suite 'Tests specific to issues:', -> test 'Empty Array from JSON generates Element. Issue 190. `item: []` should produce no nodes.', -> eq( xmleleend { item: [] } '<root/>' ) test 'Empty Array from JSON generates Element. Issue 190. `item: {}` should produce one node.', -> eq( xmlele...
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/190.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/190.coffee
1
18
oozcitak/xmlbuilder-js:test/issues/190.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Tests specific to issues:', -> test 'Empty Array from JSON generates Element. Issue 190. `item: []` should produce no nodes.', -> eq( xmleleend { item: [] } '<root/>' ) test 'Empty Array from JSON generates Element. Issue 190. `ite...
suite('Tests specific to issues:', function() { test('Empty Array from JSON generates Element. Issue 190. `item: []` should produce no nodes.', function() { return eq(xmleleend({ item: [] }), '<root/>'); }); test('Empty Array from JSON generates Element. Issue 190. `item: {}` should produce one node...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/issues/190.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/190.coffee
1
18
oozcitak/xmlbuilder-js:test/issues/190.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Tests specific to issues:', function() { test('Empty Array from JSON generates Element. Issue 190. `item: []` should produce no nodes.', function() { return eq(xmleleend({ item: [] }), '<root/>'); }); test('Empty Array from JSON generates...
suite 'Tests specific to issues:', -> test 'Empty Array from JSON generates Element. Issue 190. `item: []` should produce no nodes.', -> eq( xmleleend { item: [] } '<root/>' ) test 'Empty Array from JSON generates Element. Issue 190. `item: {}` should produce one node.', -> eq( xmlele...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/190.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/190.coffee
1
18
oozcitak/xmlbuilder-js:test/issues/190.coffee:1:completion
completion
suite 'Tests specific to issues:', -> test 'Empty Array from JSON generates Element. Issue 190. `item: []` should produce no nodes.', -> eq( xmleleend { item: [] } '<root/>' ) test 'Empty Array from JSON generates Element. Issue 190. `item: {}` should produce one node.', -> eq(
xmleleend { item: {} } '<root><item/></root>' ) test 'Empty Array from JSON generates Element. Issue 190. `item: [{}]` should produce one node.', -> eq( xmleleend { item: [{}] } '<root><item/></root>' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/190.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/190.coffee
1
18
octoblu/meshblu:test/lib/doMessageHooks-spec.coffee:1:raw_corpus
raw_corpus
describe 'doMessageHooks', -> beforeEach -> @device = {} @messageWebhook = send: sinon.stub() @MessageWebhook = sinon.spy => @messageWebhook @dependencies = MessageWebhook: @MessageWebhook @sut = require '../../lib/doMessageHooks' describe 'when called with null hook', -> beforeEach (done)...
CoffeeScript
octoblu/meshblu
test/lib/doMessageHooks-spec.coffee
MIT
398c56b5cc548bb75654e7e9072b88d5417bb18b
815
https://github.com/octoblu/meshblu/blob/398c56b5cc548bb75654e7e9072b88d5417bb18b/test/lib/doMessageHooks-spec.coffee
1
50
octoblu/meshblu:test/lib/doMessageHooks-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'doMessageHooks', -> beforeEach -> @device = {} @messageWebhook = send: sinon.stub() @MessageWebhook = sinon.spy => @messageWebhook @dependencies = MessageWebhook: @MessageWebhook @sut = require '../../lib/doMessageHooks' descri...
describe('doMessageHooks', function() { beforeEach(function() { this.device = {}; this.messageWebhook = { send: sinon.stub() }; this.MessageWebhook = sinon.spy(() => { return this.messageWebhook; }); this.dependencies = { MessageWebhook: this.MessageWebhook }; return ...
CoffeeScript
JavaScript
octoblu/meshblu
test/lib/doMessageHooks-spec.coffee
MIT
398c56b5cc548bb75654e7e9072b88d5417bb18b
815
https://github.com/octoblu/meshblu/blob/398c56b5cc548bb75654e7e9072b88d5417bb18b/test/lib/doMessageHooks-spec.coffee
1
50