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
js2coffee/js2coffee:js2coffee.coffee:2:raw_corpus
raw_corpus
js2coffee.build = (source, options = {}) -> options.filename ?= 'input.js' options.source = source ast = js2coffee.parseJS(source, options) {ast, warnings} = js2coffee.transform(ast, options) {code, map} = js2coffee.generate(ast, options) {code, ast, map, warnings} ###* # parseJS() : js2coffee.parseJS(sou...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
39
56
js2coffee/js2coffee:js2coffee.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript js2coffee.build = (source, options = {}) -> options.filename ?= 'input.js' options.source = source ast = js2coffee.parseJS(source, options) {ast, warnings} = js2coffee.transform(ast, options) {code, map} = js2coffee.generate(ast, options) {code, ast,...
js2coffee.build = function(source, options = {}) { var ast, code, map, warnings; if (options.filename == null) { options.filename = 'input.js'; } options.source = source; ast = js2coffee.parseJS(source, options); ({ast, warnings} = js2coffee.transform(ast, options)); ({code, map} = js2coffee.generate(...
CoffeeScript
JavaScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
39
56
js2coffee/js2coffee:js2coffee.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript js2coffee.build = function(source, options = {}) { var ast, code, map, warnings; if (options.filename == null) { options.filename = 'input.js'; } options.source = source; ast = js2coffee.parseJS(source, options); ({ast, warnings} = js2coffee.transfo...
js2coffee.build = (source, options = {}) -> options.filename ?= 'input.js' options.source = source ast = js2coffee.parseJS(source, options) {ast, warnings} = js2coffee.transform(ast, options) {code, map} = js2coffee.generate(ast, options) {code, ast, map, warnings} ###* # parseJS() : js2coffee.parseJS(sou...
JavaScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
39
56
js2coffee/js2coffee:js2coffee.coffee:3:raw_corpus
raw_corpus
js2coffee.parseJS = (source, options = {}) -> try Esprima = require('esprima-harmony') Esprima.parse(source, loc: true, range: true, comment: true) catch err throw buildError(err, source, options.filename) ###* # transform() : js2coffee.transform(ast, [options]) # Mutates a given JavaScript syntax tree...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
58
75
js2coffee/js2coffee:js2coffee.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript js2coffee.parseJS = (source, options = {}) -> try Esprima = require('esprima-harmony') Esprima.parse(source, loc: true, range: true, comment: true) catch err throw buildError(err, source, options.filename) ###* # transform() : js2coffee.transform...
js2coffee.parseJS = function(source, options = {}) { var Esprima, err; try { Esprima = require('esprima-harmony'); return Esprima.parse(source, { loc: true, range: true, comment: true }); } catch (error) { err = error; throw buildError(err, source, options.filename); } }; ...
CoffeeScript
JavaScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
58
75
js2coffee/js2coffee:js2coffee.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript js2coffee.parseJS = function(source, options = {}) { var Esprima, err; try { Esprima = require('esprima-harmony'); return Esprima.parse(source, { loc: true, range: true, comment: true }); } catch (error) { err = error; th...
js2coffee.parseJS = (source, options = {}) -> try Esprima = require('esprima-harmony') Esprima.parse(source, loc: true, range: true, comment: true) catch err throw buildError(err, source, options.filename) ###* # transform() : js2coffee.transform(ast, [options]) # Mutates a given JavaScript syntax tree...
JavaScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
58
75
js2coffee/js2coffee:js2coffee.coffee:4:raw_corpus
raw_corpus
js2coffee.transform = (ast, options = {}) -> ctx = {} # Note that these transformations will need to be done in a few steps. # The earlier steps (function, comment, etc) will make drastic modifications # to the tree that the other transformations will need to pick up. run = (classes) -> TransformerBase.r...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
77
119
js2coffee/js2coffee:js2coffee.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript js2coffee.transform = (ast, options = {}) -> ctx = {} # Note that these transformations will need to be done in a few steps. # The earlier steps (function, comment, etc) will make drastic modifications # to the tree that the other transformations will ne...
js2coffee.transform = function(ast, options = {}) { var ctx, run; ctx = {}; // Note that these transformations will need to be done in a few steps. // The earlier steps (function, comment, etc) will make drastic modifications // to the tree that the other transformations will need to pick up. run = function...
CoffeeScript
JavaScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
77
119
js2coffee/js2coffee:js2coffee.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript js2coffee.transform = function(ast, options = {}) { var ctx, run; ctx = {}; // Note that these transformations will need to be done in a few steps. // The earlier steps (function, comment, etc) will make drastic modifications // to the tree that the other...
js2coffee.transform = (ast, options = {}) -> ctx = {} # Note that these transformations will need to be done in a few steps. # The earlier steps (function, comment, etc) will make drastic modifications # to the tree that the other transformations will need to pick up. run = (classes) -> TransformerBase.r...
JavaScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
77
119
js2coffee/js2coffee:js2coffee.coffee:4:completion
completion
js2coffee.transform = (ast, options = {}) -> ctx = {} # Note that these transformations will need to be done in a few steps. # The earlier steps (function, comment, etc) will make drastic modifications # to the tree that the other transformations will need to pick up. run = (classes) -> TransformerBase.r...
require('./lib/transforms/members') require('./lib/transforms/objects') require('./lib/transforms/others') require('./lib/transforms/precedence') require('./lib/transforms/returns') require('./lib/transforms/switches') ] run [ require('./lib/transforms/blocks') ] { ast, warnings: ctx.wa...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/js2coffee.coffee
77
119
js2coffee/js2coffee:js2coffee.coffee:2:raw_corpus
raw_corpus
js2coffee.parse = (source, options = {}) -> ast = Esprima.parse(source, loc: true, range: true, comment: true) builder = new Builder(ast, options) {code, map} = builder.get() {code, ast, map} ### # Builder : new Builder(ast, [options]) # (private) Generates output based on a JavaScript AST. # # s = new B...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
29
44
js2coffee/js2coffee:js2coffee.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript js2coffee.parse = (source, options = {}) -> ast = Esprima.parse(source, loc: true, range: true, comment: true) builder = new Builder(ast, options) {code, map} = builder.get() {code, ast, map} ### # Builder : new Builder(ast, [options]) # (private) Gene...
js2coffee.parse = function(source, options = {}) { var ast, builder, code, map; ast = Esprima.parse(source, { loc: true, range: true, comment: true }); builder = new Builder(ast, options); ({code, map} = builder.get()); return {code, ast, map}; }; /* * Builder : new Builder(ast, [options]) * ...
CoffeeScript
JavaScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
29
44
js2coffee/js2coffee:js2coffee.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript js2coffee.parse = function(source, options = {}) { var ast, builder, code, map; ast = Esprima.parse(source, { loc: true, range: true, comment: true }); builder = new Builder(ast, options); ({code, map} = builder.get()); return {code, ast, ma...
js2coffee.parse = (source, options = {}) -> ast = Esprima.parse(source, loc: true, range: true, comment: true) builder = new Builder(ast, options) {code, map} = builder.get() {code, ast, map} ### # Builder : new Builder(ast, [options]) # (private) Generates output based on a JavaScript AST. # # s = new B...
JavaScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
29
44
js2coffee/js2coffee:js2coffee.coffee:3:raw_corpus
raw_corpus
class Builder extends Walker constructor: -> super @_indent = 0 # Indents indent: (fn) -> if fn previous = @indent() @_indent += 1 result = fn(previous) @_indent -= 1 result else Array(@_indent + 1).join(" ") ###* # get(): # Returns the output of sourc...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
46
95
js2coffee/js2coffee:js2coffee.coffee:3:completion
completion
class Builder extends Walker constructor: -> super @_indent = 0 # Indents indent: (fn) -> if fn previous = @indent() @_indent += 1 result = fn(previous) @_indent -= 1 result else Array(@_indent + 1).join(" ") ###* # get(): # Returns the output of sourc...
### # decorator(): # Takes the output of each of the node visitors and turns them into # a SourceNode. ### decorator: (node, output) -> new SourceNode( node.loc.start.line, node.loc.start.column, 'input.js', output) ### # onUnknownNode(): # Invoked when the node is not know...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
46
95
js2coffee/js2coffee:js2coffee.coffee:4:raw_corpus
raw_corpus
### Program: (node) -> node.body.map(@walk) ExpressionStatement: (node) -> [ @indent(), @walk(node.expression), "\n" ] AssignmentExpression: (node) -> [ @walk(node.left), ' = ', @walk(node.right) ] Identifier: (node) -> [ node.name ] # Operator (+) BinaryExpression: (node) -> [ @wal...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
96
145
js2coffee/js2coffee:js2coffee.coffee:4:completion
completion
### Program: (node) -> node.body.map(@walk) ExpressionStatement: (node) -> [ @indent(), @walk(node.expression), "\n" ] AssignmentExpression: (node) -> [ @walk(node.left), ' = ', @walk(node.right) ] Identifier: (node) -> [ node.name ] # Operator (+) BinaryExpression: (node) -> [ @wal...
[ @walk(node.left), ' ', node.operator, ' ', @walk(node.right) ] ThisExpression: (node) -> [ "this" ] CallExpression: (node) -> list = [] callee = @walk(node.callee) list = delimit(node.arguments.map(@walk), ', ') [ callee, '(', list, ')' ] IfStatement: (node) -> [ @indent(), @walk(nod...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
96
145
js2coffee/js2coffee:js2coffee.coffee:5:raw_corpus
raw_corpus
test = @walk(node.test) consequent = @walk(node.consequent) [ 'if ', test, "\n", consequent, els ] BlockStatement: (node) -> node.body.map(@walk) FunctionDeclaration: (node) -> params = @toParams(node.params) @indent (i) => [ i, @walk(node.id), ' = ', params, "->\n", @walk(node.bod...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
146
193
js2coffee/js2coffee:js2coffee.coffee:5:completion
completion
test = @walk(node.test) consequent = @walk(node.consequent) [ 'if ', test, "\n", consequent, els ] BlockStatement: (node) -> node.body.map(@walk) FunctionDeclaration: (node) -> params = @toParams(node.params) @indent (i) => [ i, @walk(node.id), ' = ', params, "->\n", @walk(node.bod...
UnaryExpression: (node) -> [ node.operator, @walk(node.argument) ] VariableDeclaration: (node) -> node.declarations.map (d) => [ @walk(d.id), ' = ', @walk(d.init), "\n" ] ObjectExpression: (node) -> [ "{", "...", "}" ] FunctionExpression: (node) -> params = @toParams(node.params) @in...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
dd3cb3c570f1e040ebd9c9212b5ac044d164cd93
2,082
https://github.com/js2coffee/js2coffee/blob/dd3cb3c570f1e040ebd9c9212b5ac044d164cd93/js2coffee.coffee
146
193
js2coffee/js2coffee:js2coffee.coffee:4:raw_corpus
raw_corpus
### Program: (node) -> node.body.map(@walk) ExpressionStatement: (node) -> [ @indent(), @walk(node.expression), "\n" ] AssignmentExpression: (node) -> [ @walk(node.left), ' = ', @walk(node.right) ] Identifier: (node) -> [ node.name ] # Operator (+) BinaryExpression: (node) -> [ @wal...
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
bfc11f90ef657fdbfe40ad982a7361636fe887b4
2,082
https://github.com/js2coffee/js2coffee/blob/bfc11f90ef657fdbfe40ad982a7361636fe887b4/js2coffee.coffee
96
145
js2coffee/js2coffee:js2coffee.coffee:4:completion
completion
### Program: (node) -> node.body.map(@walk) ExpressionStatement: (node) -> [ @indent(), @walk(node.expression), "\n" ] AssignmentExpression: (node) -> [ @walk(node.left), ' = ', @walk(node.right) ] Identifier: (node) -> [ node.name ] # Operator (+) BinaryExpression: (node) -> [ @wal...
[ @walk(node.left), ' ', node.operator, ' ', @walk(node.right) ] ThisExpression: (node) -> [ "this" ] CallExpression: (node) -> list = [] callee = @walk(node.callee) list = delimit(node.arguments.map(@walk), ', ') [ callee, '(', list, ')' ] IfStatement: (node) -> [ @indent(), @walk nod...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
js2coffee.coffee
MIT
bfc11f90ef657fdbfe40ad982a7361636fe887b4
2,082
https://github.com/js2coffee/js2coffee/blob/bfc11f90ef657fdbfe40ad982a7361636fe887b4/js2coffee.coffee
96
145
jianliaoim/talk-os:talk-web/client/app/post-card.coffee:1:raw_corpus
raw_corpus
React = require 'react' classnames = require 'classnames' PureRenderMixin = require 'react-addons-pure-render-mixin' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'post-card' mixins: [Pure...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/post-card.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/post-card.coffee
1
38
jianliaoim/talk-os:talk-web/client/app/post-card.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' classnames = require 'classnames' PureRenderMixin = require 'react-addons-pure-render-mixin' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = Rea...
var PureRenderMixin, React, T, classnames, detect, div, format; React = require('react'); classnames = require('classnames'); PureRenderMixin = require('react-addons-pure-render-mixin'); detect = require('../util/detect'); format = require('../util/format'); div = React.createFactory('div'); T = React.PropTypes;...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/post-card.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/post-card.coffee
1
38
jianliaoim/talk-os:talk-web/client/app/post-card.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PureRenderMixin, React, T, classnames, detect, div, format; React = require('react'); classnames = require('classnames'); PureRenderMixin = require('react-addons-pure-render-mixin'); detect = require('../util/detect'); format = require('../util/format'); ...
React = require 'react' classnames = require 'classnames' PureRenderMixin = require 'react-addons-pure-render-mixin' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'post-card' mixins: [Pure...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/post-card.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/post-card.coffee
1
38
jianliaoim/talk-os:talk-web/client/app/post-card.coffee:1:completion
completion
React = require 'react' classnames = require 'classnames' PureRenderMixin = require 'react-addons-pure-render-mixin' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'post-card' mixins: [Pure...
onClick: (event) -> event.stopPropagation() @props.onClick?() render: -> maybeImage = detect.imageUrlInHtml @props.text html = format.htmlAsText(@props.text).replace(/\n+/g, ' ') boxClass = classnames 'post-box': true 'is-with-image': maybeImage? imageStyle = backgroundImage...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/post-card.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/post-card.coffee
1
38
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll...
var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.Form = (function() { class Form extends this.Widget { ...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.F...
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
else if opts.text? @_selectByText(opts.text) else if opts.value? @_selectByValue(opts.value) _selectByText: (text) -> @find({text: text}).then (el) -> el.click() _selectByValue: (value) -> @find("option[value=\"#{value}\"]").then (el) -> el.click() fillAll: (values) -> @...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8037d9029c2eef993f7e96b7444045e81e414f64
523
https://github.com/mojotech/pioneer/blob/8037d9029c2eef993f7e96b7444045e81e414f64/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll...
var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.Form = (function() { class Form extends this.Widget { ...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8037d9029c2eef993f7e96b7444045e81e414f64
523
https://github.com/mojotech/pioneer/blob/8037d9029c2eef993f7e96b7444045e81e414f64/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.F...
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8037d9029c2eef993f7e96b7444045e81e414f64
523
https://github.com/mojotech/pioneer/blob/8037d9029c2eef993f7e96b7444045e81e414f64/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
else if opts.text? @_selectByText(opts.text) else if opts.value? @_selectByValue(opts.value) _selectByText: (text) -> @find({text: text}).then (el) -> el.click() _selectByValue: (value) -> @find("option[value=\"#{value}\"]").then (el) -> el.click() fillAll: (values) -> @...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8037d9029c2eef993f7e96b7444045e81e414f64
523
https://github.com/mojotech/pioneer/blob/8037d9029c2eef993f7e96b7444045e81e414f64/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:raw_corpus
raw_corpus
_name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _reduce, Driver.promise.fulfilled()) .then -> results
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3
523
https://github.com/mojotech/pioneer/blob/00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3/src/widgets/Widget.Form.coffee
51
60
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _reduce, Driver.promise.fulfilled()) .then -> ...
({ _name: function(name) { return `[name='${name}']`; }, _map: function(collection, callback) { var _reduce, results; results = []; _reduce = function(p, f, i) { return p.then(function() { return callback(f, i).then(function(v) { return results.push(v); }); })...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3
523
https://github.com/mojotech/pioneer/blob/00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3/src/widgets/Widget.Form.coffee
51
60
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _name: function(name) { return `[name='${name}']`; }, _map: function(collection, callback) { var _reduce, results; results = []; _reduce = function(p, f, i) { return p.then(function() { return callback(f, i).then(function(v) {...
_name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _reduce, Driver.promise.fulfilled()) .then -> results
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3
523
https://github.com/mojotech/pioneer/blob/00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3/src/widgets/Widget.Form.coffee
51
60
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:completion
completion
_name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = []
_reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _reduce, Driver.promise.fulfilled()) .then -> results
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3
523
https://github.com/mojotech/pioneer/blob/00559e1ed0d7d7772dbbf0ab36eb64d40ef772f3/src/widgets/Widget.Form.coffee
51
60
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
e4f90076df8c8fe9e8104c2ad943f0b6a09ef592
523
https://github.com/mojotech/pioneer/blob/e4f90076df8c8fe9e8104c2ad943f0b6a09ef592/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll...
var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.Form = (function() { class Form extends this.Widget { ...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
e4f90076df8c8fe9e8104c2ad943f0b6a09ef592
523
https://github.com/mojotech/pioneer/blob/e4f90076df8c8fe9e8104c2ad943f0b6a09ef592/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.F...
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
e4f90076df8c8fe9e8104c2ad943f0b6a09ef592
523
https://github.com/mojotech/pioneer/blob/e4f90076df8c8fe9e8104c2ad943f0b6a09ef592/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: -> @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm) select: (opts) -> ...
else if opts.text? @_selectByText(opts.text) else if opts.value? @_selectByValue(opts.value) _selectByText: (text) -> @find({text: text}).then (el) -> el.click() _selectByValue: (value) -> @find("option[value=\"#{value}\"]").then (el) -> el.click() fillAll: (values) -> @...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
e4f90076df8c8fe9e8104c2ad943f0b6a09ef592
523
https://github.com/mojotech/pioneer/blob/e4f90076df8c8fe9e8104c2ad943f0b6a09ef592/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().th...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[ty...
var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.Form = (function() { class Form extends this.Widget { ...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.F...
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().th...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().th...
opts = if _.isObject(opts) then opts else {text: opts} if (opts.text? and opts.value?) throw new Error('You may only have one select by attribute.') else if opts.text? @_selectByText(opts.text) else if opts.value? @_selectByValue(opts.value) _selectByText: (text) -> @find({text: te...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:raw_corpus
raw_corpus
_readAll = (f) => @read(@_name(f)).then (v) -> [f, v] @_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _readAll = (f) => @read(@_name(f)).then (v) -> [f, v] @_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then ->...
var _readAll; _readAll = (f) => { return this.read(this._name(f)).then(function(v) { return [f, v]; }); }; this._map(this.fields, _readAll).then(function(read) { return _.object(read); }); ({ _name: function(name) { return `[name='${name}']`; }, _map: function(collection, callback) { var _red...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _readAll; _readAll = (f) => { return this.read(this._name(f)).then(function(v) { return [f, v]; }); }; this._map(this.fields, _readAll).then(function(read) { return _.object(read); }); ({ _name: function(name) { return `[name='${name}']`; }...
_readAll = (f) => @read(@_name(f)).then (v) -> [f, v] @_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:completion
completion
_readAll = (f) => @read(@_name(f)).then (v) -> [f, v] @_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']"
_map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _reduce, Driver.promise.fulfilled()) .then -> results
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
6a5b236d4532138d18a3295ea06086110ee06985
523
https://github.com/mojotech/pioneer/blob/6a5b236d4532138d18a3295ea06086110ee06985/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().th...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[ty...
var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.Form = (function() { class Form extends this.Widget { ...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.F...
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().th...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().th...
throw new Error('You may only have one select by attribute.') else if opts.text? or _.isString(opts) @_selectByText(opts.text) else if opts.value? @_selectByValue(opts.value) else throw new Error('You must provide something to select by.') _selectByText: (text) -> @find({text: text}...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
1
50
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:raw_corpus
raw_corpus
@_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _type: (type) -> "[type='#{type}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _r...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _type: (type) -> "[type='#{type}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i...
this._map(this.fields, _readAll).then(function(read) { return _.object(read); }); ({ _name: function(name) { return `[name='${name}']`; }, _type: function(type) { return `[type='${type}']`; }, _map: function(collection, callback) { var _reduce, results; results = []; _reduce = function(...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this._map(this.fields, _readAll).then(function(read) { return _.object(read); }); ({ _name: function(name) { return `[name='${name}']`; }, _type: function(type) { return `[type='${type}']`; }, _map: function(collection, callback) { var _red...
@_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _type: (type) -> "[type='#{type}']" _map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _r...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:2:completion
completion
@_map(@fields, _readAll).then (read) -> _.object(read) _name: (name) -> "[name='#{name}']" _type: (type) -> "[type='#{type}']"
_map: (collection, callback) -> results = [] _reduce = (p, f, i) -> p.then -> callback(f, i).then (v) -> results.push(v) _.reduce(collection, _reduce, Driver.promise.fulfilled()) .then -> results
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
43616271f9f0c83cd317438a9986067dc3f448e4
523
https://github.com/mojotech/pioneer/blob/43616271f9f0c83cd317438a9986067dc3f448e4/src/widgets/Widget.Form.coffee
51
66
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelecto...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/src/widgets/Widget.Form.coffee
1
38
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @fin...
var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.Form = (function() { class Form extends this.Widget.Fi...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/src/widgets/Widget.Form.coffee
1
38
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, _, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); _ = require('lodash'); ref = this.Widget.F...
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelecto...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/src/widgets/Widget.Form.coffee
1
38
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require('bluebird') _ = require('lodash') class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelecto...
.then(@submitForm) select: (opts) -> if opts.text? and opts.value? throw new Error('You may only have one select by attribute.') else if opts.text? or _.isString(opts) @_selectByText(opts.text) else if opts.value? @_selectByValue(opts.value) else throw new Error('You must prov...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
517e4a9852cd82d3e1e0e943664b5e2989834236
523
https://github.com/mojotech/pioneer/blob/517e4a9852cd82d3e1e0e943664b5e2989834236/src/widgets/Widget.Form.coffee
1
38
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
Promise = require 'bluebird' class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() ...
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/src/widgets/Widget.Form.coffee
1
20
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require 'bluebird' class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') subm...
var Promise, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); ref = this.Widget.Form = (function() { class Form extends this.Widget.Fields { constructor() { ...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/src/widgets/Widget.Form.coffee
1
20
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; Promise = require('bluebird'); ref = this.Widget.Form = (function() { class...
Promise = require 'bluebird' class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() ...
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/src/widgets/Widget.Form.coffee
1
20
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
Promise = require 'bluebird' class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: (node) -> if node? if _.isString(node) @find(node) else
Promise.resolve(node) else @find('[type="submit"]') submitForm: => @submitSelector().then (el) -> el.click() submitWith: (values) => @fillAll(values) .then(@submitForm)
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8cb197559ac3c77fbdd13f184f645e287083fbea
523
https://github.com/mojotech/pioneer/blob/8cb197559ac3c77fbdd13f184f645e287083fbea/src/widgets/Widget.Form.coffee
1
20
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: -> @_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector()
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/src/widgets/Widget.Form.coffee
1
9
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: -> @_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector() ```
var ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; ref = this.Widget.Form = (function() { class Form extends this.Widget.Fields { constructor() { super(...arguments); this.sub...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/src/widgets/Widget.Form.coffee
1
9
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; ref = this.Widget.Form = (function() { class Form extends this.Widget.Fields { co...
class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: -> @_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector()
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/src/widgets/Widget.Form.coffee
1
9
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
class @Widget.Form extends @Widget.Fields root: 'form' submitSelector: ->
@_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector()
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
b55d1c58181a16f501989a041379a00d05776960
523
https://github.com/mojotech/pioneer/blob/b55d1c58181a16f501989a041379a00d05776960/src/widgets/Widget.Form.coffee
1
9
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:raw_corpus
raw_corpus
class @Widget.Form extends @Widget.Fields submitSelector: -> @_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector()
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8893d83821a43a751c37e44c703da32e4fd16fc6
523
https://github.com/mojotech/pioneer/blob/8893d83821a43a751c37e44c703da32e4fd16fc6/src/widgets/Widget.Form.coffee
1
7
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class @Widget.Form extends @Widget.Fields submitSelector: -> @_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector() ```
var ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; ref = this.Widget.Form = class Form extends this.Widget.Fields { constructor() { super(...arguments); this.submitWith = this.submitW...
CoffeeScript
JavaScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8893d83821a43a751c37e44c703da32e4fd16fc6
523
https://github.com/mojotech/pioneer/blob/8893d83821a43a751c37e44c703da32e4fd16fc6/src/widgets/Widget.Form.coffee
1
7
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ref, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; ref = this.Widget.Form = class Form extends this.Widget.Fields { constructor() { ...
class @Widget.Form extends @Widget.Fields submitSelector: -> @_type('submit') submitWith: (values) => @fillAll(values) @click @submitSelector()
JavaScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8893d83821a43a751c37e44c703da32e4fd16fc6
523
https://github.com/mojotech/pioneer/blob/8893d83821a43a751c37e44c703da32e4fd16fc6/src/widgets/Widget.Form.coffee
1
7
mojotech/pioneer:src/widgets/Widget.Form.coffee:1:completion
completion
class @Widget.Form extends @Widget.Fields submitSelector: -> @_type('submit')
submitWith: (values) => @fillAll(values) @click @submitSelector()
CoffeeScript
CoffeeScript
mojotech/pioneer
src/widgets/Widget.Form.coffee
MIT
8893d83821a43a751c37e44c703da32e4fd16fc6
523
https://github.com/mojotech/pioneer/blob/8893d83821a43a751c37e44c703da32e4fd16fc6/src/widgets/Widget.Form.coffee
1
7
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https:...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file, tabs; beautysh = this.exe("beautysh"); file = this.tempFile("input", t...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file, tabs; beautysh = this...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
} } ] options: { Bash: indent_size: true indent_with_tabs: true } beautify: (text, language, options) -> beautysh = @exe("beautysh") file = @tempFile("input", text) tabs = options.indent_with_tabs if tabs is true beautysh.run([ '-t', '-f', file ]) .then(=> @re...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
223880d4a44be85c26f03d7f137c1d128b2cdb60
1,503
https://github.com/Glavin001/atom-beautify/blob/223880d4a44be85c26f03d7f137c1d128b2cdb60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https:...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file, tabs; beautysh = this.exe("beautysh"); file = this.tempFile("input", t...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
223880d4a44be85c26f03d7f137c1d128b2cdb60
1,503
https://github.com/Glavin001/atom-beautify/blob/223880d4a44be85c26f03d7f137c1d128b2cdb60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file, tabs; beautysh = this...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
223880d4a44be85c26f03d7f137c1d128b2cdb60
1,503
https://github.com/Glavin001/atom-beautify/blob/223880d4a44be85c26f03d7f137c1d128b2cdb60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
} } ] options: { Bash: indent_size: true use_tabs: true } beautify: (text, language, options) -> beautysh = @exe("beautysh") file = @tempFile("input", text) tabs = options.use_tabs if tabs is true beautysh.run([ '-t', '-f', file ]) .then(=> @readFile file) ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
223880d4a44be85c26f03d7f137c1d128b2cdb60
1,503
https://github.com/Glavin001/atom-beautify/blob/223880d4a44be85c26f03d7f137c1d128b2cdb60/src/beautifiers/beautysh.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
4203fb72da2c71a9c3c3e0d7af50e38ae7139580
1,503
https://github.com/Glavin001/atom-beautify/blob/4203fb72da2c71a9c3c3e0d7af50e38ae7139580/src/beautifiers/beautysh.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https:...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file; beautysh = this.exe("beautysh"); file = this.tempFile("input", text); ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
4203fb72da2c71a9c3c3e0d7af50e38ae7139580
1,503
https://github.com/Glavin001/atom-beautify/blob/4203fb72da2c71a9c3c3e0d7af50e38ae7139580/src/beautifiers/beautysh.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file; beautysh = this.exe("...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
4203fb72da2c71a9c3c3e0d7af50e38ae7139580
1,503
https://github.com/Glavin001/atom-beautify/blob/4203fb72da2c71a9c3c3e0d7af50e38ae7139580/src/beautifiers/beautysh.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
} docker: { image: "unibeautify/beautysh" } } ] options: { Bash: indent_size: true } beautify: (text, language, options) -> beautysh = @exe("beautysh") file = @tempFile("input", text) beautysh.run([ '-i', options.indent_size, '-f', file ]) .then(=> @readFile...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
4203fb72da2c71a9c3c3e0d7af50e38ae7139580
1,503
https://github.com/Glavin001/atom-beautify/blob/4203fb72da2c71a9c3c3e0d7af50e38ae7139580/src/beautifiers/beautysh.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed
1,503
https://github.com/Glavin001/atom-beautify/blob/02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed/src/beautifiers/beautysh.coffee
1
30
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https:...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file; beautysh = this.exe("beautysh"); file = this.tempFile("input", text); ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed
1,503
https://github.com/Glavin001/atom-beautify/blob/02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed/src/beautifiers/beautysh.coffee
1
30
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var beautysh, file; beautysh = this.exe("...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed
1,503
https://github.com/Glavin001/atom-beautify/blob/02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed/src/beautifiers/beautysh.coffee
1
30
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" executables: [ { name: "beautysh" cmd: "beautysh" homepage: "https://github.com/bemeurer/beautysh" installation: "http...
parse: (text) -> text.indexOf("usage: beautysh") isnt -1 and "0.0.0" } } ] options: { Bash: indent_size: true } beautify: (text, language, options) -> beautysh = @exe("beautysh") file = @tempFile("input", text) beautysh.run([ '-i', options.indent_size, '-f', file ]) .then...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed
1,503
https://github.com/Glavin001/atom-beautify/blob/02d4c8f4048b9aeb85aec1b64625e3fadd8f31ed/src/beautifiers/beautysh.coffee
1
30
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" isPreInstalled: false options: { Bash: indent_size: true } beautify: (text, language, options) -> file = @tempFile("input", ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/beautysh.coffee
1
17
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" isPreInstalled: false options: { Bash: indent_size: true } beautify: (t...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var file; file = this.tempFile("input", text); return this.run('beautysh', ['-i', options....
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/beautysh.coffee
1
17
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var file; file = this.tempFile("input", t...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" isPreInstalled: false options: { Bash: indent_size: true } beautify: (text, language, options) -> file = @tempFile("input", ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/beautysh.coffee
1
17
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" isPreInstalled: false
options: { Bash: indent_size: true } beautify: (text, language, options) -> file = @tempFile("input", text) @run('beautysh', [ '-i', options.indent_size, '-f', file ], help: { link: "https://github.com/bemeurer/beautysh" }) .then(=> @readFile file)
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/beautysh.coffee
1
17
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: { Bash: indent_size: true } beautify: (text, language, options) -> file = @tempFile("input", text) @run('beautysh'...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
306dd569b4d77d6c1852238b80969742c91ceaf9
1,503
https://github.com/Glavin001/atom-beautify/blob/306dd569b4d77d6c1852238b80969742c91ceaf9/src/beautifiers/beautysh.coffee
1
15
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: { Bash: indent_size: true } beautify: (text, language, options) -...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var file; file = this.tempFile("input", text); return this.run('beautysh', ['-i', options....
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
306dd569b4d77d6c1852238b80969742c91ceaf9
1,503
https://github.com/Glavin001/atom-beautify/blob/306dd569b4d77d6c1852238b80969742c91ceaf9/src/beautifiers/beautysh.coffee
1
15
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var file; file = this.tempFile("input", t...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: { Bash: indent_size: true } beautify: (text, language, options) -> file = @tempFile("input", text) @run('beautysh'...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
306dd569b4d77d6c1852238b80969742c91ceaf9
1,503
https://github.com/Glavin001/atom-beautify/blob/306dd569b4d77d6c1852238b80969742c91ceaf9/src/beautifiers/beautysh.coffee
1
15
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: {
Bash: indent_size: true } beautify: (text, language, options) -> file = @tempFile("input", text) @run('beautysh', [ '-i', options.indent_size, '-f', file ], help: { link: "https://github.com/bemeurer/beautysh" }) .then(=> @readFile file)
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
306dd569b4d77d6c1852238b80969742c91ceaf9
1,503
https://github.com/Glavin001/atom-beautify/blob/306dd569b4d77d6c1852238b80969742c91ceaf9/src/beautifiers/beautysh.coffee
1
15
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: { Bash: true } beautify: (text, language, options) -> file = @tempFile("input", text) @run('beautysh', [ file ], help: {...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
df89047046f7f174ae6ebe7226260a3debfc4826
1,503
https://github.com/Glavin001/atom-beautify/blob/df89047046f7f174ae6ebe7226260a3debfc4826/src/beautifiers/beautysh.coffee
1
14
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: { Bash: true } beautify: (text, language, options) -> file = @tempF...
"use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var file; file = this.tempFile("input", text); return this.run('beautysh', [file], { ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
df89047046f7f174ae6ebe7226260a3debfc4826
1,503
https://github.com/Glavin001/atom-beautify/blob/df89047046f7f174ae6ebe7226260a3debfc4826/src/beautifiers/beautysh.coffee
1
14
Glavin001/atom-beautify:src/beautifiers/beautysh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var BashBeautify, Beautifier; Beautifier = require('./beautifier'); module.exports = BashBeautify = (function() { class BashBeautify extends Beautifier { beautify(text, language, options) { var file; file = this.tempFile("input", t...
"use strict" Beautifier = require('./beautifier') module.exports = class BashBeautify extends Beautifier name: "beautysh" link: "https://github.com/bemeurer/beautysh" options: { Bash: true } beautify: (text, language, options) -> file = @tempFile("input", text) @run('beautysh', [ file ], help: {...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/beautysh.coffee
MIT
df89047046f7f174ae6ebe7226260a3debfc4826
1,503
https://github.com/Glavin001/atom-beautify/blob/df89047046f7f174ae6ebe7226260a3debfc4826/src/beautifiers/beautysh.coffee
1
14