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
gss/engine:src/engine/utilities/Console.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript end: (result) -> @buffer.push(undefined, undefined, undefined, undefined, @closeGroup) @pop(result, @openGroup, true) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return...
var i, len, method, ref; ({ end: function(result) { this.buffer.push(void 0, void 0, void 0, void 0, this.closeGroup); return this.pop(result, this.openGroup, true); }, getTime: function(other, time) { time || (time = (typeof performance !== "undefined" && performance !== null ? typeof performance.no...
CoffeeScript
JavaScript
gss/engine
src/engine/utilities/Console.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee
153
173
gss/engine:src/engine/utilities/Console.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var i, len, method, ref; ({ end: function(result) { this.buffer.push(void 0, void 0, void 0, void 0, this.closeGroup); return this.pop(result, this.openGroup, true); }, getTime: function(other, time) { time || (time = (typeof performance !== "und...
end: (result) -> @buffer.push(undefined, undefined, undefined, undefined, @closeGroup) @pop(result, @openGroup, true) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in C...
JavaScript
CoffeeScript
gss/engine
src/engine/utilities/Console.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee
153
173
gss/engine:src/engine/utilities/Console.coffee:4:completion
completion
end: (result) -> @buffer.push(undefined, undefined, undefined, undefined, @closeGroup) @pop(result, @openGroup, true) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100
for method in Console::methods Console::[method] = do (method) -> return -> if method == 'group' || method == 'groupCollapsed' Console::groups++ else if method == 'groupEnd' return unless Console::groups Console::groups-- if @level || method == 'error' console?[m...
CoffeeScript
CoffeeScript
gss/engine
src/engine/utilities/Console.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee
153
173
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/video.coffee:1:raw_corpus
raw_corpus
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' module.exports = VideoSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String duration: Number # Duration of video height: Number width: Number Vide...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/video.coffee
1
20
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/video.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' module.exports = VideoSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String duration: Number #...
// File attachment schema var Schema, VideoSchema, striker; ({Schema} = require('mongoose')); striker = require('../../components/striker'); module.exports = VideoSchema = new Schema({ fileKey: String, fileName: String, fileType: String, fileSize: Number, fileCategory: String, duration: Number, // Durati...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/video.coffee
1
20
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/video.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // File attachment schema var Schema, VideoSchema, striker; ({Schema} = require('mongoose')); striker = require('../../components/striker'); module.exports = VideoSchema = new Schema({ fileKey: String, fileName: String, fileType: String, fileSize: Number...
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' module.exports = VideoSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String duration: Number # Duration of video height: Number width: Number Vide...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/video.coffee
1
20
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/video.coffee:1:completion
completion
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' module.exports = VideoSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number
fileCategory: String duration: Number # Duration of video height: Number width: Number VideoSchema.virtual 'downloadUrl' .get -> striker.downloadUrl this VideoSchema.virtual 'previewUrl' .get -> striker.previewUrl this
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/video.coffee
1
20
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see something else$/, -> new @Widg...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Th...
module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I fill the field with default with something else$/, function() { return new this.Widget({ root: "#field2" }).fill({ va...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I fill the field with default with something else$/, function() { return new thi...
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see something else$/, -> new @Widg...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see something else$/, -> new @Widg...
div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F = world.Widget.Form.extend({ root: 'form' fields: _.map(table.hashes(), "name") }) new F().submitWith(_.fromPairs(table.raw().slice(1))) @Then /^the widget should use the default form selector to find the...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:raw_corpus
raw_corpus
new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({tex...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
54
103
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @W...
new this.Widget.Form({ root: "select" }).select({ value: "wow2" }).then(function() { return new _this.Widget({ root: '#onClick' }).read().should.eventually.eql('two'); }); this.When(/^I select an option by text$/, function() { var _this; _this = this; return new this.Widget.Form({ root: "select" ...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
54
103
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript new this.Widget.Form({ root: "select" }).select({ value: "wow2" }).then(function() { return new _this.Widget({ root: '#onClick' }).read().should.eventually.eql('two'); }); this.When(/^I select an option by text$/, function() { var _this; _this = th...
new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({tex...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
54
103
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:completion
completion
new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({tex...
expect( => new @Widget.Form({ root: "select" }) .select() ).to.throw("You must provide something to select by.") @When /^I try to select with both selectors$/, -> expect( => new @Widget.Form({ root: "select" }) .select({ text: "three", value: "wow3"}) )...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
54
103
mojotech/pioneer:test/integration/steps/form_steps.coffee:3:raw_corpus
raw_corpus
@When /^I click a checkbox$/, -> @W.click('input[type="checkbox"]') @Then /^the checkbox should be selected$/, -> @W.find({root: 'input[type="checkbox"]'}) .then (widget) -> widget.el.isSelected() .should.eventually.eql(true)
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
104
111
mojotech/pioneer:test/integration/steps/form_steps.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @When /^I click a checkbox$/, -> @W.click('input[type="checkbox"]') @Then /^the checkbox should be selected$/, -> @W.find({root: 'input[type="checkbox"]'}) .then (widget) -> widget.el.isSelected() .should.eventually.eql(true) ```
this.When(/^I click a checkbox$/, function() { return this.W.click('input[type="checkbox"]'); }); this.Then(/^the checkbox should be selected$/, function() { return this.W.find({ root: 'input[type="checkbox"]' }).then(function(widget) { return widget.el.isSelected(); }).should.eventually.eql(true); });
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
104
111
mojotech/pioneer:test/integration/steps/form_steps.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.When(/^I click a checkbox$/, function() { return this.W.click('input[type="checkbox"]'); }); this.Then(/^the checkbox should be selected$/, function() { return this.W.find({ root: 'input[type="checkbox"]' }).then(function(widget) { return widget...
@When /^I click a checkbox$/, -> @W.click('input[type="checkbox"]') @Then /^the checkbox should be selected$/, -> @W.find({root: 'input[type="checkbox"]'}) .then (widget) -> widget.el.isSelected() .should.eventually.eql(true)
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
104
111
mojotech/pioneer:test/integration/steps/form_steps.coffee:3:completion
completion
@When /^I click a checkbox$/, -> @W.click('input[type="checkbox"]')
@Then /^the checkbox should be selected$/, -> @W.find({root: 'input[type="checkbox"]'}) .then (widget) -> widget.el.isSelected() .should.eventually.eql(true)
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/form_steps.coffee
104
111
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see something else$/, -> new @Widg...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
94edaed773a6243bf1c8af69b646a00247d2fc78
523
https://github.com/mojotech/pioneer/blob/94edaed773a6243bf1c8af69b646a00247d2fc78/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Th...
module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I fill the field with default with something else$/, function() { return new this.Widget({ root: "#field2" }).fill({ va...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
94edaed773a6243bf1c8af69b646a00247d2fc78
523
https://github.com/mojotech/pioneer/blob/94edaed773a6243bf1c8af69b646a00247d2fc78/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I fill the field with default with something else$/, function() { return new thi...
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see something else$/, -> new @Widg...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
94edaed773a6243bf1c8af69b646a00247d2fc78
523
https://github.com/mojotech/pioneer/blob/94edaed773a6243bf1c8af69b646a00247d2fc78/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see something else$/, -> new @Widg...
div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F = world.Widget.Form.extend({ root: 'form' fields: _.pluck(table.hashes(), "name") }) new F().submitWith(_.object(table.raw().slice(1))) @Then /^the widget should use the default form selector to find the ...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
94edaed773a6243bf1c8af69b646a00247d2fc78
523
https://github.com/mojotech/pioneer/blob/94edaed773a6243bf1c8af69b646a00247d2fc78/test/integration/steps/form_steps.coffee
4
53
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:raw_corpus
raw_corpus
new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({tex...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/test/integration/steps/form_steps.coffee
54
92
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @W...
new this.Widget.Form({ root: "select" }).select({ value: "wow2" }).then(function() { return new _this.Widget({ root: '#onClick' }).read().should.eventually.eql('two'); }); this.When(/^I select an option by text$/, function() { var _this; _this = this; return new this.Widget.Form({ root: "select" ...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/test/integration/steps/form_steps.coffee
54
92
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript new this.Widget.Form({ root: "select" }).select({ value: "wow2" }).then(function() { return new _this.Widget({ root: '#onClick' }).read().should.eventually.eql('two'); }); this.When(/^I select an option by text$/, function() { var _this; _this = th...
new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({tex...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/test/integration/steps/form_steps.coffee
54
92
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:completion
completion
new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({tex...
}) .read() .should.eventually.eql('three') @When /^I try to select with no selector$/, -> expect( => new @Widget.Form({ root: "select" }) .select() ).to.throw("You must provide something to select by.") @When /^I try to select with both selectors$/, -> expect( =>...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/test/integration/steps/form_steps.coffee
54
92
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see someth...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) ....
var _; _ = require('lodash'); module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I fill the field with default with something else$/, function() { return new this.Widget({ root: ...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require('lodash'); module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I fill the field with default with something else$/,...
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see someth...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I fill the field with default with something else$/, -> new @Widget({ root: "#field2" }) .fill({value: "doge"}) @Then /^I should only see someth...
@Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F = world.Widget.Form.extend({ root: 'form' fields: _.pluck(table.hashes(), "name") }) new F().submitWith(_.object(table.raw().s...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:raw_corpus
raw_corpus
@When /^I select an option by value$/, -> _this = this new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this ...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
51
74
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @When /^I select an option by value$/, -> _this = this new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When...
this.When(/^I select an option by value$/, function() { var _this; _this = this; return new this.Widget.Form({ root: "select" }).select({ value: "wow2" }).then(function() { return new _this.Widget({ root: '#onClick' }).read().should.eventually.eql('two'); }); }); this.When(/^I select ...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
51
74
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.When(/^I select an option by value$/, function() { var _this; _this = this; return new this.Widget.Form({ root: "select" }).select({ value: "wow2" }).then(function() { return new _this.Widget({ root: '#onClick' }).read().should....
@When /^I select an option by value$/, -> _this = this new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two') @When /^I select an option by text$/, -> _this = this ...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
51
74
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:completion
completion
@When /^I select an option by value$/, -> _this = this new @Widget.Form({ root: "select" }) .select({value:"wow2"}).then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('two')
@When /^I select an option by text$/, -> _this = this new @Widget.Form({ root: "select" }) .select({text:"three"}) .then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('three')
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
9be971fdf2a262d22356cc97e92d9cfe15823460
523
https://github.com/mojotech/pioneer/blob/9be971fdf2a262d22356cc97e92d9cfe15823460/test/integration/steps/form_steps.coffee
51
74
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widg...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I ...
var _; _ = require('lodash'); module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); ...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require('lodash'); module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I enter information and submit$/, function() { v...
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widg...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widg...
new @Widget.Form().getAttribute("class").should.eventually.eql("formula_1") @Then /^the widget should find the form with the supplied selector of "([^"]*)"$/, (selector) -> new @Widget.Form({root: selector}).getAttribute("id").should.eventually.eql("form") @When /^I search for a nested option I should find i...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/test/integration/steps/form_steps.coffee
1
50
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:raw_corpus
raw_corpus
_this = this new @Widget.Form({ root: "select" }) .select({text:"three"}) .then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('three')
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/test/integration/steps/form_steps.coffee
51
61
mojotech/pioneer:test/integration/steps/form_steps.coffee:2:completion
completion
_this = this new @Widget.Form({ root: "select" }) .select({text:"three"})
.then -> new _this.Widget({ root: '#onClick' }) .read() .should.eventually.eql('three')
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/test/integration/steps/form_steps.coffee
51
61
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widg...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/form_steps.coffee
1
29
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I ...
var _; _ = require('lodash'); module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); ...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/form_steps.coffee
1
29
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require('lodash'); module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I enter information and submit$/, function() { v...
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widg...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/form_steps.coffee
1
29
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
_ = require('lodash') module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widg...
div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F = world.Widget.Form.extend({ root: 'form' fields: _.pluck(table.hashes(), "name") }) new F().submitWith(_.object(table.raw().slice(1))) @Then /^the widget should use the default form selector to find the ...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/form_steps.coffee
1
29
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText()....
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/test/integration/steps/form_steps.coffee
1
27
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (tex...
module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); thi...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/test/integration/steps/form_steps.coffee
1
27
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { var world; world = this; this.Given(/^I click submit$/, function() { return new this.Widgets.SimpleForm().submitForm(); }); this.Given(/^I enter information and submit$/, function() { var form; form = new this.Wid...
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText()....
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/test/integration/steps/form_steps.coffee
1
27
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> world = this @Given /^I click submit$/, -> new this.Widgets.SimpleForm().submitForm() @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText()....
@Given /^I fill a form with:$/, (table) -> F = world.Widget.Form.extend({ root: 'form' fields: _.pluck(table.hashes(), "name") }) new F().submitWith(_.object(table.raw().slice(1))) @Then /^the widget should use the default form selector to find the first available form element$/, -> new @W...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/test/integration/steps/form_steps.coffee
1
27
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F ...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/test/integration/steps/form_steps.coffee
1
24
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(t...
module.exports = function() { var world; world = this; this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); this.Then(/^I should see "([^"]*)"$/, function(text) { var div; div = new this.Widgets.Div(); retu...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/test/integration/steps/form_steps.coffee
1
24
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { var world; world = this; this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); this.Then(/^I should see "([^"]*)"$/, function(text) { ...
module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F ...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/test/integration/steps/form_steps.coffee
1
24
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) ->
F = world.Widget.Form.extend({ root: 'form' fields: _.pluck(table.hashes(), "name") }) new F().submitWith(_.object(table.raw().slice(1))) @Then /^the widget should use the default form selector to find the first available form element$/, -> new @Widget.Form().getAttribute("class").should.event...
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/test/integration/steps/form_steps.coffee
1
24
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F ...
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
a5487920dadb0ff0367d15f153b3c18883e25348
523
https://github.com/mojotech/pioneer/blob/a5487920dadb0ff0367d15f153b3c18883e25348/test/integration/steps/form_steps.coffee
1
18
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(t...
module.exports = function() { var world; world = this; this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); this.Then(/^I should see "([^"]*)"$/, function(text) { var div; div = new this.Widgets.Div(); retu...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
a5487920dadb0ff0367d15f153b3c18883e25348
523
https://github.com/mojotech/pioneer/blob/a5487920dadb0ff0367d15f153b3c18883e25348/test/integration/steps/form_steps.coffee
1
18
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { var world; world = this; this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); this.Then(/^I should see "([^"]*)"$/, function(text) { ...
module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F ...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
a5487920dadb0ff0367d15f153b3c18883e25348
523
https://github.com/mojotech/pioneer/blob/a5487920dadb0ff0367d15f153b3c18883e25348/test/integration/steps/form_steps.coffee
1
18
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> world = this @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div()
div.getText().should.eventually.eql(text) @Given /^I fill a form with:$/, (table) -> F = world.Widget.Form.extend({ root: 'form' fields: _.pluck(table.hashes(), "name") }) new F().submitWith(_.object(table.raw().slice(1)))
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
a5487920dadb0ff0367d15f153b3c18883e25348
523
https://github.com/mojotech/pioneer/blob/a5487920dadb0ff0367d15f153b3c18883e25348/test/integration/steps/form_steps.coffee
1
18
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text)
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
c833eaf7c653fd92b5f52f8049ee03e70c24b625
523
https://github.com/mojotech/pioneer/blob/c833eaf7c653fd92b5f52f8049ee03e70c24b625/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) ```
module.exports = function() { this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); return this.Then(/^I should see "([^"]*)"$/, function(text) { var div; div = new this.Widgets.Div(); return div.getText().shoul...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
c833eaf7c653fd92b5f52f8049ee03e70c24b625
523
https://github.com/mojotech/pioneer/blob/c833eaf7c653fd92b5f52f8049ee03e70c24b625/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.SimpleForm(); return form.enter(); }); return this.Then(/^I should see "([^"]*)"$/, function(text) { var div; div =...
module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text)
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
c833eaf7c653fd92b5f52f8049ee03e70c24b625
523
https://github.com/mojotech/pioneer/blob/c833eaf7c653fd92b5f52f8049ee03e70c24b625/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.SimpleForm()
form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text)
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
c833eaf7c653fd92b5f52f8049ee03e70c24b625
523
https://github.com/mojotech/pioneer/blob/c833eaf7c653fd92b5f52f8049ee03e70c24b625/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:raw_corpus
raw_corpus
module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.Form() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text)
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
013c1209adc4a8e8642ea1dd0bde34af4d7b468b
523
https://github.com/mojotech/pioneer/blob/013c1209adc4a8e8642ea1dd0bde34af4d7b468b/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.Form() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text) ```
module.exports = function() { this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.Form(); return form.enter(); }); return this.Then(/^I should see "([^"]*)"$/, function(text) { var div; div = new this.Widgets.Div(); return div.getText().should.even...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
013c1209adc4a8e8642ea1dd0bde34af4d7b468b
523
https://github.com/mojotech/pioneer/blob/013c1209adc4a8e8642ea1dd0bde34af4d7b468b/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { this.Given(/^I enter information and submit$/, function() { var form; form = new this.Widgets.Form(); return form.enter(); }); return this.Then(/^I should see "([^"]*)"$/, function(text) { var div; div = new t...
module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.Form() form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text)
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
013c1209adc4a8e8642ea1dd0bde34af4d7b468b
523
https://github.com/mojotech/pioneer/blob/013c1209adc4a8e8642ea1dd0bde34af4d7b468b/test/integration/steps/form_steps.coffee
1
9
mojotech/pioneer:test/integration/steps/form_steps.coffee:1:completion
completion
module.exports = -> @Given /^I enter information and submit$/, -> form = new this.Widgets.Form()
form.enter() @Then /^I should see "([^"]*)"$/, (text) -> div = new this.Widgets.Div() div.getText().should.eventually.eql(text)
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/form_steps.coffee
MIT
013c1209adc4a8e8642ea1dd0bde34af4d7b468b
523
https://github.com/mojotech/pioneer/blob/013c1209adc4a8e8642ea1dd0bde34af4d7b468b/test/integration/steps/form_steps.coffee
1
9
buttercoin/buttercoin:lib/ews/q_protocol.coffee:1:raw_corpus
raw_corpus
_ = require('underscore') Q = require('q') Protocol = require('./protocol') module.exports = class QueryProtocol extends Protocol constructor: (options, parent) -> super(options, parent) @query_interface = @options.query_provider @handlers = GET_BALANCES: @get_balances handle_close: => @inf...
CoffeeScript
buttercoin/buttercoin
lib/ews/q_protocol.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/q_protocol.coffee
1
32
buttercoin/buttercoin:lib/ews/q_protocol.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('underscore') Q = require('q') Protocol = require('./protocol') module.exports = class QueryProtocol extends Protocol constructor: (options, parent) -> super(options, parent) @query_interface = @options.query_provider @handlers = ...
var Protocol, Q, QueryProtocol, _, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }, indexOf = [].indexOf; _ = require('underscore'); Q = require('q'); Protocol = require('./protocol'); module.exp...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/q_protocol.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/q_protocol.coffee
1
32
buttercoin/buttercoin:lib/ews/q_protocol.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Protocol, Q, QueryProtocol, _, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }, indexOf = [].indexOf; _ = require('underscore'); Q = requi...
_ = require('underscore') Q = require('q') Protocol = require('./protocol') module.exports = class QueryProtocol extends Protocol constructor: (options, parent) -> super(options, parent) @query_interface = @options.query_provider @handlers = GET_BALANCES: @get_balances handle_close: => @inf...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/q_protocol.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/q_protocol.coffee
1
32
buttercoin/buttercoin:lib/ews/q_protocol.coffee:1:completion
completion
_ = require('underscore') Q = require('q') Protocol = require('./protocol') module.exports = class QueryProtocol extends Protocol constructor: (options, parent) -> super(options, parent) @query_interface = @options.query_provider @handlers = GET_BALANCES: @get_balances handle_close: => @inf...
handle_parsed_data: (parsed_data) => unless parsed_data?.kind in _.keys(@handlers) @info "INVALID OPERATION", parsed_data?.kind @options.send({ status: "error", message: "Invalid operation: #{parsed_data?.kind}" operation: parsed_data }) result = @handlers[parsed_data....
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/q_protocol.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/q_protocol.coffee
1
32
yakyak/yakyak:test/test-entity-funcs.coffee:1:raw_corpus
raw_corpus
init = require './init.json' entity = require '../src/ui/models/entity' describe 'entity', -> beforeEach -> entity._reset() describe 'count', -> it 'counts total', -> added = entity._initFromEntities init.entities eql 2, added eql added, entity.count() ...
CoffeeScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
1
43
yakyak/yakyak:test/test-entity-funcs.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript init = require './init.json' entity = require '../src/ui/models/entity' describe 'entity', -> beforeEach -> entity._reset() describe 'count', -> it 'counts total', -> added = entity._initFromEntities init.entities ...
var entity, init; init = require('./init.json'); entity = require('../src/ui/models/entity'); describe('entity', function() { beforeEach(function() { return entity._reset(); }); describe('count', function() { return it('counts total', function() { var added; added = entity._initFromEntities...
CoffeeScript
JavaScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
1
43
yakyak/yakyak:test/test-entity-funcs.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var entity, init; init = require('./init.json'); entity = require('../src/ui/models/entity'); describe('entity', function() { beforeEach(function() { return entity._reset(); }); describe('count', function() { return it('counts total', function() { ...
init = require './init.json' entity = require '../src/ui/models/entity' describe 'entity', -> beforeEach -> entity._reset() describe 'count', -> it 'counts total', -> added = entity._initFromEntities init.entities eql 2, added eql added, entity.count() ...
JavaScript
CoffeeScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
1
43
yakyak/yakyak:test/test-entity-funcs.coffee:1:completion
completion
init = require './init.json' entity = require '../src/ui/models/entity' describe 'entity', -> beforeEach -> entity._reset() describe 'count', -> it 'counts total', -> added = entity._initFromEntities init.entities eql 2, added eql added, entity.count() ...
describe 'add', -> it 'adds an .id prop which is the chat_id and returns the result', -> ret = entity.add { id: chat_id:'a' gaia_id:'b' } eql entity['a'], { id:'a' } assert.strict...
CoffeeScript
CoffeeScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
1
43
yakyak/yakyak:test/test-entity-funcs.coffee:2:raw_corpus
raw_corpus
it 'merges properties into the object', -> entity.add { id: gaia_id:'a' chat_id:'a' properties: some:'prop' } eql entity['a'], { id:'a' some:'prop' ...
CoffeeScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
45
82
yakyak/yakyak:test/test-entity-funcs.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'merges properties into the object', -> entity.add { id: gaia_id:'a' chat_id:'a' properties: some:'prop' } eql entity['a'], { ...
it('merges properties into the object', function() { entity.add({ id: { gaia_id: 'a', chat_id: 'a' }, properties: { some: 'prop' } }); return eql(entity['a'], { id: 'a', some: 'prop' }); }); it('merges all other props', function() { entity.add({ id: { gaia_...
CoffeeScript
JavaScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
45
82
yakyak/yakyak:test/test-entity-funcs.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('merges properties into the object', function() { entity.add({ id: { gaia_id: 'a', chat_id: 'a' }, properties: { some: 'prop' } }); return eql(entity['a'], { id: 'a', some: 'prop' }); }); it('merges all other pr...
it 'merges properties into the object', -> entity.add { id: gaia_id:'a' chat_id:'a' properties: some:'prop' } eql entity['a'], { id:'a' some:'prop' ...
JavaScript
CoffeeScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
45
82
yakyak/yakyak:test/test-entity-funcs.coffee:2:completion
completion
it 'merges properties into the object', -> entity.add { id: gaia_id:'a' chat_id:'a' properties: some:'prop' } eql entity['a'], { id:'a' some:'prop' ...
} eql entity['a'], { id:'a' some:'outer prop' } describe 'needEntity', -> afterEach -> global.action = -> it 'gathers entity id during a timeout and does an action for all', (done) -> entity.needEntity 'a', 10 ...
CoffeeScript
CoffeeScript
yakyak/yakyak
test/test-entity-funcs.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/test/test-entity-funcs.coffee
45
82
jianliaoim/talk-os:talk-web/client/app/file-queue-mentions.coffee:1:raw_corpus
raw_corpus
React = require 'react' assign = require 'object-assign' Immutable = require 'immutable' mentionedMessageActions = require '../actions/mentioned-message' mixinFileQueue = require '../mixin/file-queue' mixinSubscribe = require '../mixin/subscribe' PureRenderMixin = require 'react-addons-pure-render-mixin' { div } = R...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/file-queue-mentions.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-mentions.coffee
1
33
jianliaoim/talk-os:talk-web/client/app/file-queue-mentions.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' assign = require 'object-assign' Immutable = require 'immutable' mentionedMessageActions = require '../actions/mentioned-message' mixinFileQueue = require '../mixin/file-queue' mixinSubscribe = require '../mixin/subscribe' PureRenderMix...
var Immutable, PureRenderMixin, React, T, assign, div, mentionedMessageActions, mixinFileQueue, mixinSubscribe; React = require('react'); assign = require('object-assign'); Immutable = require('immutable'); mentionedMessageActions = require('../actions/mentioned-message'); mixinFileQueue = require('../mixin/file-q...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/file-queue-mentions.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-mentions.coffee
1
33
jianliaoim/talk-os:talk-web/client/app/file-queue-mentions.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, PureRenderMixin, React, T, assign, div, mentionedMessageActions, mixinFileQueue, mixinSubscribe; React = require('react'); assign = require('object-assign'); Immutable = require('immutable'); mentionedMessageActions = require('../actions/mentione...
React = require 'react' assign = require 'object-assign' Immutable = require 'immutable' mentionedMessageActions = require '../actions/mentioned-message' mixinFileQueue = require '../mixin/file-queue' mixinSubscribe = require '../mixin/subscribe' PureRenderMixin = require 'react-addons-pure-render-mixin' { div } = R...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/file-queue-mentions.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-mentions.coffee
1
33
jianliaoim/talk-os:talk-web/client/app/file-queue-mentions.coffee:1:completion
completion
React = require 'react' assign = require 'object-assign' Immutable = require 'immutable' mentionedMessageActions = require '../actions/mentioned-message' mixinFileQueue = require '../mixin/file-queue' mixinSubscribe = require '../mixin/subscribe' PureRenderMixin = require 'react-addons-pure-render-mixin' { div } = R...
propTypes: _teamId: T.string.isRequired onClose: T.func.isRequired messages: T.instanceOf(Immutable.List) attachment: T.instanceOf(Immutable.Map) query: T.object requestBefore: (success) -> success Immutable.List() requestAfter: (success) -> if @props.query? mentionedMessageActio...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/file-queue-mentions.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-mentions.coffee
1
33
CaryLandholt/AngularFun:scripts/coffee/main.coffee:1:raw_corpus
raw_corpus
###global define, require### require map: '*': 'libs/angular': '../libs/angular' 'libs/angularResource': '../libs/angular-resource' 'libs/domReady': '../libs/domReady' 'libs/modernizr': '../libs/modernizr' 'libs/text': '../libs/text' 'partials/tab': '../partials/tab' 'partials/tabs': '../partia...
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
d85ee6432476e09a9cd09af701985b62bfd1b157
672
https://github.com/CaryLandholt/AngularFun/blob/d85ee6432476e09a9cd09af701985b62bfd1b157/scripts/coffee/main.coffee
1
50
CaryLandholt/AngularFun:scripts/coffee/main.coffee:1:completion
completion
###global define, require### require map: '*': 'libs/angular': '../libs/angular' 'libs/angularResource': '../libs/angular-resource' 'libs/domReady': '../libs/domReady' 'libs/modernizr': '../libs/modernizr' 'libs/text': '../libs/text' 'partials/tab': '../partials/tab' 'partials/tabs': '../partia...
'controllers/searchHistory' 'controllers/twitter' 'directives/ngController' 'directives/tabs' 'directives/tab' 'filters/twitterfy' 'libs/angular' 'responseInterceptors/dispatcher' ], (app) -> app.config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm' controll...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
d85ee6432476e09a9cd09af701985b62bfd1b157
672
https://github.com/CaryLandholt/AngularFun/blob/d85ee6432476e09a9cd09af701985b62bfd1b157/scripts/coffee/main.coffee
1
50
CaryLandholt/AngularFun:scripts/coffee/main.coffee:2:raw_corpus
raw_corpus
reloadOnSearch: true resolve: changeTab: ($rootScope) -> $rootScope.$broadcast 'changeTab#twitter' .otherwise redirectTo: '/github/CaryLandholt' ] app.run ['$rootScope', '$log', ($rootScope, $log) -> $rootScope.$on 'error:unauthorized', (event, response) -> #$log.error 'unauthorized' ...
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
d85ee6432476e09a9cd09af701985b62bfd1b157
672
https://github.com/CaryLandholt/AngularFun/blob/d85ee6432476e09a9cd09af701985b62bfd1b157/scripts/coffee/main.coffee
51
75
CaryLandholt/AngularFun:scripts/coffee/main.coffee:2:completion
completion
reloadOnSearch: true resolve: changeTab: ($rootScope) -> $rootScope.$broadcast 'changeTab#twitter' .otherwise redirectTo: '/github/CaryLandholt' ] app.run ['$rootScope', '$log', ($rootScope, $log) -> $rootScope.$on 'error:unauthorized', (event, response) -> #$log.error 'unauthorized'
$rootScope.$on 'error:forbidden', (event, response) -> #$log.error 'forbidden' $rootScope.$on 'error:403', (event, response) -> #$log.error '403' $rootScope.$on 'success:ok', (event, response) -> #$log.info 'success' # fire an event related to the current route $rootScope.$on '$routeChangeSuc...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
d85ee6432476e09a9cd09af701985b62bfd1b157
672
https://github.com/CaryLandholt/AngularFun/blob/d85ee6432476e09a9cd09af701985b62bfd1b157/scripts/coffee/main.coffee
51
75
CaryLandholt/AngularFun:scripts/coffee/main.coffee:1:raw_corpus
raw_corpus
###global define, require### require map: '*': 'libs/angularResource': 'libs/angular-resource' shim: 'libs/angular': deps: ['libs/modernizr'] exports: 'angular' 'libs/angular-resource': ['libs/angular'] 'libs/modernizr': exports: 'Modernizr' [ 'app' 'bootstrap' 'controllers/gitHub' 'cont...
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
b51fa32a9d2a3556c592d2e033e8802bf40b3f97
672
https://github.com/CaryLandholt/AngularFun/blob/b51fa32a9d2a3556c592d2e033e8802bf40b3f97/scripts/coffee/main.coffee
1
50
CaryLandholt/AngularFun:scripts/coffee/main.coffee:1:completion
completion
###global define, require### require map: '*': 'libs/angularResource': 'libs/angular-resource' shim: 'libs/angular': deps: ['libs/modernizr'] exports: 'angular' 'libs/angular-resource': ['libs/angular'] 'libs/modernizr': exports: 'Modernizr' [ 'app' 'bootstrap' 'controllers/gitHub' 'cont...
'libs/angular' 'responseInterceptors/dispatcher' ], (app) -> app.config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm' controller: 'gitHub' reloadOnSearch: true resolve: changeTab: ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' .when '/pe...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
b51fa32a9d2a3556c592d2e033e8802bf40b3f97
672
https://github.com/CaryLandholt/AngularFun/blob/b51fa32a9d2a3556c592d2e033e8802bf40b3f97/scripts/coffee/main.coffee
1
50
CaryLandholt/AngularFun:scripts/coffee/main.coffee:1:raw_corpus
raw_corpus
###global define, require### ### map: '*': 'libs/angularResource': 'libs/angular-resource' shim: 'libs/angular': deps: ['libs/modernizr'] exports: 'angular' 'libs/angular-resource': ['libs/angular'] 'libs/modernizr': exports: 'Modernizr' ### define 'libs/modernizr', -> Modernizr define 'libs/angular', ['l...
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
a8f66a0a3617e549d0071a85d4d386a4103264e3
672
https://github.com/CaryLandholt/AngularFun/blob/a8f66a0a3617e549d0071a85d4d386a4103264e3/scripts/coffee/main.coffee
1
50
CaryLandholt/AngularFun:scripts/coffee/main.coffee:1:completion
completion
###global define, require### ### map: '*': 'libs/angularResource': 'libs/angular-resource' shim: 'libs/angular': deps: ['libs/modernizr'] exports: 'angular' 'libs/angular-resource': ['libs/angular'] 'libs/modernizr': exports: 'Modernizr' ### define 'libs/modernizr', -> Modernizr define 'libs/angular', ['l...
'controllers/searchHistory' 'controllers/twitter' 'directives/ngController' 'directives/tabs' 'directives/tab' 'filters/twitterfy' #'libs/angular' 'responseInterceptors/dispatcher' ], (app) -> app.config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm' control...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/coffee/main.coffee
MIT
a8f66a0a3617e549d0071a85d4d386a4103264e3
672
https://github.com/CaryLandholt/AngularFun/blob/a8f66a0a3617e549d0071a85d4d386a4103264e3/scripts/coffee/main.coffee
1
50
jianliaoim/talk-os:talk-web/client/actions/account.coffee:1:raw_corpus
raw_corpus
dispatcher = require '../dispatcher' api = require '../network/api' TALK = require '../config' exports.bind = (refer) -> if refer is 'mobile' location.replace "#{ TALK.accountUrl }/bind-mobile?action=bind&next_url=#{ window.location }" else if refer?.length location.replace "#{ TALK.accountUrl }/union/#{ ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/account.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/account.coffee
1
41
jianliaoim/talk-os:talk-web/client/actions/account.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript dispatcher = require '../dispatcher' api = require '../network/api' TALK = require '../config' exports.bind = (refer) -> if refer is 'mobile' location.replace "#{ TALK.accountUrl }/bind-mobile?action=bind&next_url=#{ window.location }" else if refer?.le...
var TALK, api, dispatcher; dispatcher = require('../dispatcher'); api = require('../network/api'); TALK = require('../config'); exports.bind = function(refer) { if (refer === 'mobile') { return location.replace(`${TALK.accountUrl}/bind-mobile?action=bind&next_url=${window.location}`); } else if (refer != nu...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/account.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/account.coffee
1
41
jianliaoim/talk-os:talk-web/client/actions/account.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TALK, api, dispatcher; dispatcher = require('../dispatcher'); api = require('../network/api'); TALK = require('../config'); exports.bind = function(refer) { if (refer === 'mobile') { return location.replace(`${TALK.accountUrl}/bind-mobile?action=bind&...
dispatcher = require '../dispatcher' api = require '../network/api' TALK = require '../config' exports.bind = (refer) -> if refer is 'mobile' location.replace "#{ TALK.accountUrl }/bind-mobile?action=bind&next_url=#{ window.location }" else if refer?.length location.replace "#{ TALK.accountUrl }/union/#{ ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/account.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/account.coffee
1
41
jianliaoim/talk-os:talk-web/client/actions/account.coffee:1:completion
completion
dispatcher = require '../dispatcher' api = require '../network/api' TALK = require '../config' exports.bind = (refer) -> if refer is 'mobile' location.replace "#{ TALK.accountUrl }/bind-mobile?action=bind&next_url=#{ window.location }" else if refer?.length location.replace "#{ TALK.accountUrl }/union/#{ ...
data: email exports.fetch = (success, fail) -> api.get '/api/account/user/accounts' .then (resp) -> dispatcher.handleViewAction type: 'account/fetch' data: resp success? resp .catch (error) -> fail? error exports.unbind = (refer, success, fail) -> api.post "/api/account/union/unbind/#{...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/account.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/account.coffee
1
41
linemanjs/lineman:lib/npm-utils.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _.tap {}, (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for your new project..." exec command, (error, stdout, std...
CoffeeScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/npm-utils.coffee
1
18
linemanjs/lineman:lib/npm-utils.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _.tap {}, (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for you...
var _, exec; _ = require("lodash"); exec = require("child_process").exec; module.exports = (function(_, exec) { return _.tap({}, function(exports) { var command; exports.installFrom = function(path, callback) { process.chdir(path); console.info(` - Running \`${command}\` to install dependencies...
CoffeeScript
JavaScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/npm-utils.coffee
1
18
linemanjs/lineman:lib/npm-utils.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, exec; _ = require("lodash"); exec = require("child_process").exec; module.exports = (function(_, exec) { return _.tap({}, function(exports) { var command; exports.installFrom = function(path, callback) { process.chdir(path); console....
_ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _.tap {}, (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for your new project..." exec command, (error, stdout, std...
JavaScript
CoffeeScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/npm-utils.coffee
1
18
linemanjs/lineman:lib/npm-utils.coffee:1:completion
completion
_ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _.tap {}, (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for your new project..." exec command, (error, stdout, std...
if error console.error("Uh oh! An error occurred while running `#{command}`.") console.info(stdout) console.error(stderr) callback(error) command = "npm install" )(_, exec)
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/npm-utils.coffee
1
18
linemanjs/lineman:lib/npm-utils.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _({}).tap (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for your new project..." exec command, (error, stdout, std...
CoffeeScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/npm-utils.coffee
1
18
linemanjs/lineman:lib/npm-utils.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _({}).tap (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for you...
var _, exec; _ = require("lodash"); exec = require("child_process").exec; module.exports = (function(_, exec) { return _({}).tap(function(exports) { var command; exports.installFrom = function(path, callback) { process.chdir(path); console.info(` - Running \`${command}\` to install dependencies...
CoffeeScript
JavaScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/npm-utils.coffee
1
18
linemanjs/lineman:lib/npm-utils.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, exec; _ = require("lodash"); exec = require("child_process").exec; module.exports = (function(_, exec) { return _({}).tap(function(exports) { var command; exports.installFrom = function(path, callback) { process.chdir(path); console....
_ = require("lodash") exec = require("child_process").exec module.exports = ((_, exec) -> _({}).tap (exports) -> exports.installFrom = (path, callback) -> process.chdir(path) console.info " - Running `#{command}` to install dependencies for your new project..." exec command, (error, stdout, std...
JavaScript
CoffeeScript
linemanjs/lineman
lib/npm-utils.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/npm-utils.coffee
1
18